WEBFOCUS 文件读取

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值