Creates a new instance of a EasycomFile object, which represents an opened file in an AS/400 connection.
Class EasycomFile
Syntax
public EasycomFile.EasycomFile(EasycomConnection cnx,
String FileName)
public EasycomFile.EasycomFile(EasycomConnection cnx, String FileName,
openFileAccess openMode);
public EasycomFile.EasycomFile(EasycomConnection cnx, String FileName,
openFileAccess openMode, Boolean bCommit)
Description
Parameter |
Description |
Type |
Cnx |
Specifies the connection object to which the file opening will belong to |
Easycomconnction |
FileName |
Specifies the name of the file to open. This filename must specify a name, and can specify a library and/or a member. |
String |
openMode |
Specifies the open mode (ReadOnly, ReadWrite, ExclusiveRead or ExclusiveReadWrite) |
openFileAccess |
bCommit |
If true, the file will be opened in journaled mode, and will take part of transactions. |
Boolean |
The filename can have the following forms:
• LIBRARY/FILE: the file is defined in an absolute form.
• FILE: the file will be opened using the *LIBL (library list) rules.
• LIBRARY/FILE(MEMBER): the file is defined in an absolute form, with a specific member (allows multi-member capable programs).
• FILE(MEMBER): opens a file using the *LIBL rules, with a specific member.
• *PGM/PGM_DEF: opens an Easycom-defined program description. Allows native program calls (using key search function).