FILEDEF TESTFILE DISK C:/IBI/APPS/PRO1/TEST_01.txt
TABLE FILE TESTFILE
PRINT
FIELD_NAME/A50
FIELD_DESC/A40
WHERE FIELD_NAME NE ''
WHERE FLD EQ 'T'
ON TABLE HOLD AS LISTS
END
-RUN
Issuing the command
? FILEDEF
produces information similar to the following:
Lname Device Lrecl Recfm Append Expl Filename =============================================================== HOLD2 DISK 0 V N Y C:/VM/SMALL/HOLD2.FTMSyntax: How to Assign a Logical Name With Code Under WindowsFILEDEF ddname DISK [filename] [(APPEND] [LRECL n] [RECFM F]or
FILEDEF SYSIN TERM [LOWER]or
FILEDEF ddname PRINTER
where:
ddname
- DISK
Is the logical name for the file, input, or output. The ddname can be from 1 to 8
characters. When used to associate a data source with a Master File, the ddname must
match the name of the Master File.- filename
Associates the specified ddname with a file.
- APPEND
Is the complete file name. It may include a drive and directory specification.
- LRECL n
Appends records to the end of the file. Without this option, the file is overwritten.
- RECFM F
Specifies the record length; n is an integer.
You must specify an LRECL value if the file is a SAVB file or fixed-format
transaction file used in data maintenance (FIXFORM files) that contains binary values.- TERM
Specifies fixed length records.
You must specify an RECFM value if the file is a SAVB file or fixed-format
transaction file used in data maintenance (FIXFORM files) that contains binary values.- LOWER
Specifies the keyboard and monitor as the input source and output destination.
- PRINTER
Sends keyboard input to WebFOCUS as entered.
Specifies the printer as the output destination.