Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Generation mode

The choice of DMS interface is controlled by the generation mode. It is preset by the assembler, but can also be selected globally by means of the GPARMOD macro or separately for each macro by means of the PARMOD operand.

Although it is possible to select different interfaces for different files within one program, all the macros for one file/FCB (OPEN, CLOSE, EXLST, FCB, action macros) must be assembled using the same generation mode.

Example

For SHARUPD processing, different programs can process the same file in a different generation mode. Where PAM macros are chained, various generation modes can be selected within the chain.

START
             USING *,3
             LDBASE 3,ORG=YES
             :
             OPEN  FCB1,PARMOD=24
             OPEN  FCB2,PARMOD=31
             :
             GET   FCB1,PARMOD=24
             PUT   FCB2,PARMOD=31
             :
             CLOSE ALL,PARMOD=31
             TERM
             :
   FCB1      FCB   PARMOD=24,EXIT=EXLST1
   EXLST1    EXLST PARMOD=24
             :
   FCB2      FCB   PARMOD=31,EXIT=EXLST2
   EXLST2    EXLST PARMOD=31
             :
             END
Example

Chaining PAM macros with different generation modes

ELEM1    PAM   FCB2,CHAIN=ELEM2,PARMOD=31
ELEM2    PAM   FCB1,CHAIN=ELEM3,PARMOD=24
ELEM3    PAM   FCB2,PARMOD=31