GNFDEF(0;SB,M,SB ==> c;,,,CO)
FILEDEF_DEFINE,FILEDEFQUERY see (p2,filedef)
A .pathnames is a string of up to 256 characters. {A .pathname is a registry style name {with dots in it (registry)} that is used to consult the directory referred to by this object. The sequence of .pathnames has more than one element in it when "dataset concatenation" is involved.}
A jfcb is a 176 byte encoding of file format information.
<ddname> <directory-name> <options>
<directory-name> is the name of the object to be used by the program. It will be used to locate the key for the object in the hierarchical directory accessed by filedef.
<options> are as follows:
RECFM <os-record-format>
LRECL <number>
BLOCK <number>
KEYLEN <number>
FSQ <number>
DISP <os disposition>
CONCAT - To concatenate this object to a previous filedef for the same ddname.
Object Type options (use only one)
DIRECTORY - If the object is created by FILEDEF it will be created as a named record collection.
SEGMENT - If the object is created by FILEDEF it will be created as a fresh segment.
FILE - If the object is created by FILEDEF it will be created as a unnamed record collection.
TERMINAL - No key exists. The OS simulator is to use its terminal support for this file.
TAPE - either a TAPEKEY or a TAPEACCESS key is specified. The file is on a physical tape designated by the TAPEKEY {indirectly by the TAPEACCESS key}.
{ni}Some options will specify one of three types of co-routines. However co-routines will not be created by FILEDEF {where would the other end go?}.
Similar to the above. <object-name> is not present; OBJ has a key to the object.
FILEDEF_DEFINE(kt+4 ==>0) destroys the filedef domain
Order codes:
Oc=1 for output (n must be 0, directory entry may be created).
rc=1 No filedef for that ddname exists or n exceeds the number of concatenated objects. No jfcb is returned.
rc=2 Directory entry for object does not exist (oc=0 only). The 176 byte os standard jfcb information from FILEDEF_DEFINE is returned.
rc=3 parameter error.
rc=4 Filedef was to a terminal. Only the JFCB is returned.
Oc=11 for output, directory entry and object may be created.
rc=1 No directory entry found.
OC=21 Return the Next Command image after the DDNAME, Data-Set-Name specified. "Next" may be either the next concatenated dataset or the next DDNAME in the list.
c=1 no such command image.