Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling file handler "EXTFH" directly in cobol... 1

Status
Not open for further replies.

XPPROGRAMMER

Programmer
Nov 15, 2004
44
US
Hello,

what is the major advantage of calling the file handler
"EXTFH" Directly, rather than using the standard cobol
syntax like open, read, write, close file...etc ??
I am using windows xp pro with microfocus Net Express 3.1
cobol compiler.

thanks for the help.
 
The file handler allows you to configure your IO options beyond what COBOL IO statements give you.

Here are a few configurable options:

DATAFILE Maps the file name, passed to an OPEN statement, onto another name.
EXPANDPOSITIONING When using the WRITE AFTER POSITIONING statement (OS/VS COBOL compatibility), determines whether the written record includes carriage control information.
EXPANDTAB Determines whether to expand TAB characters, encountered in line sequential or line advancing files during a READ operation, into the equivalent number of spaces.
INSERTNULL When performing WRITE or REWRITE operations on line sequential or line advancing files, determines whether to insert NULL (x"00") characters before non-printable characters. Also determines whether to strip out those NULL characters during READ operations.
RUNITLOCKDETECT Specifies whether you can detect that a record has been locked by a separate OPEN statement issued from within the same run unit.
STRIPSPACE When performing WRITE or REWRITE operations on line sequential or line advancing files, determines whether to remove trailing space characters.
WRITETHRU Determines whether to write file modifications out to disk immediately. Alternatively, the modifications may be buffered internally, either by the COBOL system or by the operating system, and flushed to disk at a later stage.

From
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top