Sign in

docs RPG Reference

Equivalent Free-form Coding for Fixed-Form File Entries

Equivalent Free-form Coding for Fixed-Form File Entries

Equivalent Free-form Coding for Fixed-Form File Entries

Table 1. Free-form equivalents for fixed-form file entries

Fixed-form-entryFree-form equivalent
File typeUSAGE keyword
File designationNo free-form syntax is related to the file designation. All free-form files are fully-procedural or output.
End of fileNot supported in free-form
File additionUSAGE(*OUTPUT)
SequenceNot supported in free-form
Record lengthParameter of device keyword DISK, PRINTER, SEQ, SPECIAL, WORKSTN
Limits processingNot supported in free-form
Length of key fieldLength parameter of the KEYED keyword
Record address type A and KKEYED keyword
Record address type other than A or KNot supported in free-form
File organizationI KEYED keyword T Not supported in free-form
DeviceDevice keyword DISK, PRINTER, SEQ, SPECIAL, WORKSTN