Coding the Sort/Merge Control Statements   - mfx - 3.1

Syncsort™ MFX Programmers Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ Software
Product
Syncsort™ MFX > MFX
Version
3.1
Language
English
Content type
Programmer’s Guide
Product name
Syncsort™ MFX
Title
Syncsort™ MFX Programmers Guide
Topic type
How Do I
Copyright
2024
First publish date
2010
Last edition
2024-08-27
Last publish date
2024-08-27T08:14:56.318001

MFX control statements are introduced by the invoking programs as character operands in DC operations. Although it is generally true that all control statements supported for a JCL-initiated Disk Sort/MAXSORT are available to invoked applications, these exceptions should be noted:

  • A MODS control statement cannot be used for an E32 exit and is not required for an E15 or E35 exit. (An E32, E15 and/or E35 exit routine may be coded in line with the invoking program with their addresses passed to the sort in the parameter list. If a 31-bit or 64-bit parameter list is being used, an E18 and/or E39 exit routine address may also be passed.)

  • A RECORD control statement is required if an inline E15 exit routine address is provided. Its LENGTH parameter is required whenever an inline E15 or E35 exit routine is used. For a full description of record length parameters, see RECORD Control Statement.

  • The END control statement is not used.

The actual coding of the control statements is the same, except that:

  • No comments or labels are permitted within the DC operand.

  • Continuation characters are not called for, since the statements are not in card-image format.

For the 24-bit parameter list, each control statement DC instruction should be labeled and followed by a DC C' ' instruction so that the beginning and ending addresses of the control statement can be referenced in the parameter list.

Figure 1. Sample Control Statement Images for the 24-bit Parameter List

Note that the 24-bit invoking parameter list and pointer word, as well as the control statement images, must be below the 16 megabyte line.

As in a JCL-initiated sort/merge, control statements must begin with at least one blank.

For the 31-bit and 64-bit invoking parameter lists, the control statement images will be pointed to by the first word of the parameter list and are organized like the control statement images for a 24-bit parameter list. Note, however, that only the first DC instruction requires a label since only the start and end of the list need be referred to. The control statements must be separated by one or more blanks; that is, each control statement must be followed by a blank. A blank before the first statement is optional; however, a blank after each statement is required. Labels, comment statements, and comment fields must not be coded. Each control statement, except the last, must have at least one parameter.
Figure 2. Sample Control Statement Images for the 31-bit Parameter List