To open an iSeries display file or subfile as a record file, use the _Ropen() function with one of the following modes:
•rr •wr and ar •ar+ •rr+ and wr+
The valid keyword parameters are:
•lrecl •indicators •secure •riofb
I/O Considerations for Record Display Files
The program device that is associated with display files is a workstation.You establish the default device by implicitly acquiring it using the _Ropen() function. The implicitly acquired program device is determined by the DEV parameter on the CRTDSPF, CHGDSPF, or OVRDSPF commands. If *REQUESTER is specified on the DEV parameter, then the program device from which the program was called is implicitly acquired. It becomes the default program device for I/O operations to the display file.
If *NONE is specified on the DEV parameter of the CRTDSPF, CHGDSPF, or OVRDSPF commands, you must explicitly acquire the program device with the _Racquire() function. The explicitly acquired program device now becomes the default device for subsequent I/O operations to the device file.
You can change the default program device in the following ways:
I/O Considerations for Record Subfiles
I/O operations to the subfile record format do not cause data to appear on the display. You must read or write the subfile control record format to transfer data to or from the display. Use the _Rformat() function to distinguish between subfile record formats and subfile control formats. If the format you specify with the _Rformat() function refers to a subfile record format, no data is transferred to or from the display.
To read the next changed subfile record, use the _Rreadnc() function. This function searches for the next changed record from the current position in the file. If this is the first read operation, the first changed record in the subfile is read.If the end-of-file is reached before finding a changed record, EOF is returned in the num_bytes field of the _RIOFB_T structure.
Record Functions for Display Files and Subfiles
Use the following record functions to process display files and subfiles:
IBM-ILE Related Interview Questions
|IBM - RPG Interview Questions||IBM DB2 Interview Questions|
|DB2 Using SQL Interview Questions||IBM Mainframe Interview Questions|
|IBM AIX 7 Administration Interview Questions||AS400 Interview Questions|
|Automatic Storage Management (ASM) Interview Questions||Mainframe DB2 Interview Questions|
|Rpgle Interview Questions|
Introduction To The Ile C/c++ Compiler
Creating A Program
Working With Exports From Service Programs
Example - Creating A Sample Ile C Application
Running A Program
Debugging A Program
Using Stream And Record I/o Functions With Iseries Data
Using Ile C/c++ Stream Functions With The Iseries Integrated File System
Using Externally Described Files In Your Programs
Using Database Files And Distributed Data Management Files In Your Programs
Using Device Files In Your Programs
Handling Exceptions In Your Program
Using Iseries Pointers In Your Program
Using Packed Decimal Data In Your C Programs
Internationalizing Your Program
International Locale Support
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.