ONXEDT Process Files/Lib. Elements with an EDT Procedure

ONXEDT [d] [,p,] [file library ( [t/] element) [, D] ]

Process all marked data objects with the specified EDT procedure (input file).

d EDT Level into which the data object should be read. Standard: 0

p EDT Level into which the Input procedure should be read. Standard: 1

file File which contains the EDT procedure.

library ( [t/] element)

Name of the library and element containing the EDT procedure. If the element is contained within a PLAM library, the element type can be omitted. The standard type S/ will be assumed.

The EDT Procedure will be read into EDT Level 1 by means of an @INPUT statement from the file or library element. Normally, the EDT statements must be prefixed with two '@' characters. For example: @@ON&C'...'T'...'

D After processing the EDT procedure, the parameter D will cause control to switch to EDT dialog via the @DIALOG command. The user can terminate dialog mode by pressing the K1 key. Note the remarks in the following paragraph regarding updating from the EDT virtual memory.

For each data object the process is performed as follows:

a) The data object is read into EDT Level 0.

b) Task switch 0 is reset (/SETSW OFF=0).

c) The EDT procedure read into EDT Level 1 by CFS with @INPUT will be executed with an @DO 1 command.

d) After processing the EDT procedure, or after pressing the K1 key to terminate the dialog mode, the processed data object will automatically be rewritten, so long as none of the following conditions are fulfilled:

   - Task switch 0 was not set (@SETSW ON=0), either by the EDT procedure or by the user.

   - EDT Level 0 was not erased (@DEL), either by the EDT procedure or by the user.

Notes:

The Variable Action ONXEDT is only available as from EDT V16.2.

Specifying the Variable Action ONXEDT without parameters will result in no EDT procedure being started. The user is placed in the EDT dialog mode for each data object for individual processing. The data object is not updated if the EDT Level 0 is erased with an @DEL command, or if the task switch 0 is set with @SETSW ON=0 before returning to CFS with the K1 key.

The input file can contain multiple EDT procedures (@PROC n ... @END).

After a data object has been successfully read into the EDT buffer, an SDF-P variable called CFSEDT will be filled by CFS as follows:

Col. Length Contents

1 54 Name of the file or library element

PLAM: Name without type or version description

55 8 PLAM: Element type, e.g. 'S'

63 24 PLAM: Element version

87 54 for library elements: Name of the library

141 1 Type of data object:

C'_' File

C'J' Job variable

C'P' PLAM element

C'L' LMS-ISAM element

C'F' FMS element

Example:

The input file called ASS.EDT contains the following statements to process assembler source programs:

@@DEL&:73-80:

@@ON&CA'='' 'T'=C'' '

The Variable Action ONXEDT ASS.EDT will delete columns 73 to 80 for all marked files/ library elements. The second statement will change all "='_" strings to "=C'_" .