Version 4.2.6 for Mainframes (Update)
 —  Utilities  —

Migration from NATUNLD/NATLOAD and SYSTRANS to the Object Handler

You can migrate from the old utilities NATUNLD/NATLOAD and SYSTRANS to the Object Handler by using the two methods described in this section.


Converting Individual Commands

You can convert NATUNLD/NATLOAD or SYSTRANS direct commands to the corresponding Object Handler commands by using the Object Handler commands provided for migration. These migration commands automatically convert the command syntax used by the old utilities to the command syntax used by the Object Handler.

Start of instruction setTo convert a single command

  1. Use one of the following Object Handler direct commands:

    NATUNLD

    followed by a NATUNLD direct command.

    Or:

    NATLOAD

    followed by a NATLOAD direct command.

    Or:

    SYSTRANS

    followed by a SYSTRANS direct command.

    The specified utility command is converted to the corresponding Object Handler command.

  2. Specify any subsequent command for the Object Handler in the syntax that applies to the utility NATUNLD, NATLOAD or SYSTRANS respectively.

    The syntax of this utility remains valid for the duration of the Object Handler session.

Example of a NATUNLD Command:

The following is an example of two consecutive NATUNLD utility commands and their corresponding Object Handler commands.

Old NATUNLD commands: NATUNLD ALL * FM LIB1 TO LIB2
ALL PG* FM LIB2
New Object Handler command: SYSOBJH NATUNLD ALL * FM LIB1 TO LIB2
ALL PG* FM LIB2
Subsequent Object Handler command in NATUNLD syntax:

Example of a SYSTRANS Command:

The following is an example of two consecutive SYSTRANS utility commands and their corresponding Object Handler commands.

Old SYSTRANS commands: TRANSCMD EXECUTE UNLOAD N FROM LIB1 NAME ETID
END
New Object Handler command: SYSOBJH SYSTRANS EXECUTE UNLOAD N FROM LIB1 NAME ETID END
Subsequent Object Handler command in SYSTRANS syntax: END

Example of SYSTRANS Batch Processing:

The following is an example of processing a SYSTRANS utility command in batch by using map input data, and the corresponding Object Handler command and input data.

Old SYSTRANS batch sequence:

SYSTRANS
U                        
N,N,N,Y,N,N,N,N           
N                         
SRCLIB1,PGM1,*,TGTLIB1

New Object Handler batch sequence:

SYSOBJH SYSTRANS
U                        
N,N,N,Y,N,N,N,N           
N                         
SRCLIB1,PGM1,*,TGTLIB1

Top of page

Processing Commands with a User Exit Routine

As an alternative to redefining each single utility command, you can specify in a user exit routine that utility commands call SYSOBJH for function execution. This routine determines whether or not a direct commands issued to NATUNLD/NATLOD or SYSTRANS is forwarded as an SYSOBJH command to the Object Handler.

Start of instruction setTo activate the user exit routine

  1. For NATUNLD/NATLOAD:

    SAVE source object U-S-EX03 under the name UNLDEX03 in the Natural system library SYSUNLD. The source object is supplied in SYSUNLD.

    For SYSTRANS:

    SAVE source object TRA-E2-S under the name TRA-EX-2 in the Natural system library SYSTRANS. The source object is supplied in SYSTRANS.

  2. Open the source of UNLDEX03 or TRA-EX-2 respectively and set USE-SYSOBJH to Y (this is the default value entered). N will deactivate the user exit routine.

    You can define conditions for use such as when the Object Handler is to be used instead of an old utility or who is authorized to use the Object Handler.

  3. CATALOG or STOW the source object.

Top of page

Processing SYSTRANS Commands with OBJHAPI

You can use the OBJHAPI Application Programming Interface (supplied in the Natural system library SYSOBJH) to execute an Object Handler command in the syntax of the SYSTRANS utility.

If you use OBJHAPI for this purpose, you have to specify the parameter P-EXTENSIONS-EXEC-SYSTRANS-CMD in the program that invokes OBJHAPI. For details, see the example program DOC-API supplied in the library SYSOBJH.

Top of page

Unsupported SYSTRANS Options

The Object Handler does not support the following SYSTRANS direct command options: WORK-FILE-INPUT, SPECIAL-CONVERSION, RULE-LOAD and UNLOAD-RULES.

Top of page