WEBFOCUS 文件读取

来源:互联网 发布:4s上的数据如何备份 编辑:程序博客网 时间:2024/06/05 03:02

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


 

Example: Displaying Current ddnames

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.FTM
Syntax: How to Assign a Logical Name With Code Under Windows
FILEDEF ddname DISK [filename] [(APPEND] [LRECL n] [RECFM F]

or

FILEDEF SYSIN TERM [LOWER]

or

FILEDEF ddname PRINTER

where:

ddname

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.

DISK

Associates the specified ddname with a file.

filename

Is the complete file name. It may include a drive and directory specification.

APPEND

Appends records to the end of the file. Without this option, the file is overwritten.

LRECL n

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.

RECFM F

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.

TERM

Specifies the keyboard and monitor as the input source and output destination.

LOWER

Sends keyboard input to WebFOCUS as entered.

PRINTER

Specifies the printer as the output destination.

原创粉丝点击