z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RECFM—Query the Record Format

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The RECFM assignment statement retrieves the record format of the data set being edited, and places the value in a variable.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(var1,var2)-- = --RECFM----------------------------><

var1
The name of a variable to contain the type of record format of the data being edited, either F or V:
F
Fixed-length records.
V
Variable-length records.
var2
The name of a variable to contain the remaining record format information of the data being edited, in the combination of M, A, S, BM, BA, BS, BSM, or BSA:
B
Blocked records.
S
Standard or spanned records.
M
Machine print control character records.
A
ASA print control character records.

When editing a z/OS® UNIX file, var2 is set to blanks.

Return codes

0
Normal completion
20
Severe error

Examples

To place the type of record format in variable RECFM1 and then use either the logical data width (for a fixed data set) or the right display column (for a variable data set):
ISREDIT (RECFM1) = RECFM
IF &RECFM1 = F THEN -
  ISREDIT (WIDTH) = DATA_WIDTH
ELSE -
  ISREDIT (,WIDTH) = DISPLAY_COLS
To place the remaining record format information in variable RECFM2:
ISREDIT (,RECFM2) = RECFM
To place the type of record format information in variable RECFM1, and the remaining record format information in variable RECFM2:
ISREDIT (RECFM1,RECFM2) = RECFM

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014