Task Initialization - Batch (Magic xpa 3.x)
-
All of the data sources defined in the Data View Editor are opened.
-
Magic xpa examines the task data view operations, and the task's logical record is created based on:
-
Parameter values are received from a calling task.
-
Virtual variables are initialized with values that match the variable attribute (numeric variables are initialized with zero, alpha with blanks, etc.).
-
The task range is defined according to the range criteria in the Range Window.
-
The engine sorts the data view according to the specified Sort Indicators (if specified in the Sort Indicator repository).
The next steps include operations that initialize the task.
-
I/O Devices are opened (if specified in the I/O Device repository).
-
The operations in the Task Prefix logic unit are executed.
Note: At this stage, no data from the Main Source or linked sources is available.
The next step is Record Processing.