When reading the work file-specific parameter settings with the IEDTGET
function, EDT saves the information in the EDTPARL
control block.
Creating the EDTPARL control block
The Assembler macro IEDTPARL
can be used to generate the EDTPARL
control block.
Name | Operation | Operands |
[name] | IEDTPARL | [ { D | C } ] [,prefix] [,VERSION= { 1 | 2 | 3 | 4 } ] |
name | – Symbolic name of the first If name is not specified then |
D C | A dummy section ( A memory section with symbolic addresses is generated (no |
prefix | One character with which the generated field names should start. If prefix is not specified, |
VERSION | Selects which version of the control block is to be generated: Versions 1, 2, 3 are used with the V16 format of the interface. |
If the macro IEDTPARL VERSION=4
is specified then the EDTPARL
control block is generated in the following form:
IEDTPARL D,VERSION=4 1 EDTPARL MFPRE DNAME=EDT,MF=D,PREFIX=* 2 EDTPARL DSECT , 2 *,##### PREFIX=, MACID= ##### 1 *--------------- EDT UNIT NUMBER, EDTPARL VERSION NUMBER -------------- 1 EPLUNITC EQU 66 EDT UNIT NUMBER 1 EPLVERSC EQU 4 EDTPARL VERSION NUMBER 1 * *---- CONTROL BLOCK HEADER -------------------- 1 EPLFHE DS 0XL8 GENERAL OPERAND LIST HEADER 1 EPLIFID DS 0A INTERFACE IDENTIFIER 1 EPLUNIT DC AL2(XPLUNITC) UNIT NUMBER 1 DS AL1 RESERVED 1 EPLVERS DC AL1(XPLVERSC) FUNCTION INTERFACE VERSION NUMBER 1 DS A RESERVED 1 * *---- OUTPUT FIELDS --------------------------- 1 EPLVPOS DS CL8 FIRST LINE IN WINDOW 1 EPLHPOS DS H FIRST COLUMN IN WINDOW 1 EPLRLIM DS H MAX RECORD-LENGTH IN F-MODE 1 EPLINF DS CL1 INF ON/OFF (1/0) 1 EPLLOW DS CL1 LOWER ON/OFF (1/0) 1 EPLHEX DS CL1 HEX ON/OFF (1/0) 1 EPLEDL DS CL1 EDIT LONG ON/OFF (1/0) 1 EPLSCALE DS CL1 SCALE ON/OFF (1/0) 1 EPLPROT DS CL1 PROTECTION ON/OFF (1/0) 1 EPLSTRUC DS CL1 STRUCTURE SYMBOL IF EBCDIC 1 EPLOPEN DS CL1 OPEN FLAG: (I/P/R/S/X/0) 1 EPLEMPTY DS CL1 EMPTY FLAG 1 EPLMODIF DS CL1 MODIFIED FLAG 1 EPLSTDF DS CL54 STANDARD FILENAME 1 EPLSTDL DS CL54 STANDARD LIBRARY NAME 1 EPLSTDT DS CL8 STANDARD PLAM TYPE 1 DS CL4 RESERVED 1 EPLVPOS1 DS CL8 FIRST LINE IN WINDOW 1 1 EPLHPOS1 DS H FIRST COLUMN IN WINDOW 1 1 EPLVPOS2 DS CL8 FIRST LINE IN WINDOW 2 1 EPLHPOS2 DS H FIRST COLUMN IN WINDOW 2 1 EPLINDX1 DS CL1 INDEX OFF/ON/FULL (0/1/2) WINDOW 1 1 EPLINDX2 DS CL1 INDEX OFF/ON/FULL (0/1/2) WINDOW 2 1 EPLOPENC DS XL1024 COMMON AREA FOR FILE DESCRIPTION 1 EPLOPEND EQU * END OF COMMON AREA 1 ORG XPLOPENC DESCRIPTION OF OPENED DATA FILE 1 EPLOPNFL DS CL54 NAME OF OPENED FILE/PLAM LIBRARY 1 EPLOPNE DS CL64 NAME OF OPENED PLAM ELEMENT 1 EPLOPNV DS CL24 VERSION OF OPENED PLAM ELEMENT
1 EPLOPNT DS CL8 TYP OF OPENED PLAM ELEMENT 1 ORG XPLOPENC DESCRIPTION OF OPENED UFS FILE 1 EPLOPNX DS CL1024 NAME OF OPENED UFS FILE 1 * 1 EPLCCSN DS CL8 CODED CHARACTER SET NAME V17.0 1 EPLCCSNG DS XL1 CCS IS GLOBAL (0/1) V17.0 1 EPLSSTRU DS H STRUCTURE SYMBOL UTF16 1 *--------------- LENGTH OF CONTROL BLOCK ------------------------------ 1 EPLPARLL EQU *-EDTPARL
Depending on the setting of the Open flag EPLOPEN
, the EPLOPENC
field contains the description of the file opened with @OPEN or @XOPEN or of the PLAM element.
Meaning of the control block fields | Length | Format | Parameter type | ||
Call | Return | ||||
| Identification of EDT. | 2 | X | C(M) | |
| Control block version number. | 1 | X | C(M) | |
| 1st line in the data window | 8 | C | R | |
| 1st column in the data window ( | 2 | X | R | |
| Max. record length in F mode ( | 2 | X | R | |
| Information On/Off ( | 1 | P | R | |
| Lower On/Off ( | 1 | P | R | |
| Hex On/Off ( | 1 | P | R | |
| Edit Long On/Off ( | 1 | P | R | |
| Scale On/Off ( | 1 | P | R | |
| Protection On/Off ( | 1 | P | R | |
| Structure symbol (if EBCDIC coding, if | 1 | C | R | |
|
| 1 | P | R | |
| File empty yes/no ( | 1 | P | R | |
| File modified yes/no ( | 1 | P | R | |
| Default file name set with @FILE | 54 | P | R | |
| Default library name set with | 54 | P | R | |
| Default type set with @PAR ELEMENT- | 8 | P | R | |
|
real, opened
padded with blanks | 54 | P | R | |
|
| 64 | P | R | |
|
| 24 | P | R | |
|
| 8 | P | R | |
|
| 1024 | P | R | |
| First line number in window 1 | 8 | P | R | |
| First column in window 1 | 2 | X | R | |
| First line number in window 2 | 8 | P | R | |
| First column in window 2 | 2 | X | R | |
| Index Off/On/Full window 1 ( | 1 | P | R | |
| Index Off/On/Full window 2 ( | 1 | P | R | |
| Character set for the work file. If the work file | 8 | P | R | |
| The character set applies to all non-empty | 1 | P | R | |
| Structure symbol in UTF16 | 2 | U | R |
| Call parameter | Must be supplied by the caller. This is set by the macro (when the |
| Call parameter | Must be deleted with binary zeros by the user on the first |
| Return parameter Binary format Printable
| Supplied by EDT. Binary digits Printable texts (in the character set Text in |
Changes compared to the V16 format
The
EPLCCSN
field is new (it previously had the nameEPGCCSN
in the control blockEDTPARG).
The
EPLCCSNG
field is new.The
EPLSTCOD
field is no longer used.The
EPLOPNXC
field is no longer used.The
EPLSTRUC
field now only contains the structure symbol if this can be displayed as an EBCDIC character; otherwise it contains binary zeros. TheEPLSSTRU
field always contains the structure symbol inUTF16
coding.
Compatible V17 format
If V17 format is used to call EDT in compatibility mode or to call an EDT version lower than V17.0 then the information items not supplied by the relevant V16 version are set to default values:
All file name fields with blanks
EPLVPOS1
andEPLVPOS2
with'00010000'
EPLHPOS1
andEPLHPOS2
with binary1
EPLINDX1
andEPLINDX2
with'1'
EPLCCSN
with the globally specifiedCCSN
(EPLCCSNG
then contains1
) if the work file is not empty; otherwise with blanks (EPLCCSNG
then contains0
).