Previous Topic

Next Topic

Book Contents

Book Index

CTMBLT Example 4

In the following example, the MEM-OVERWRITE statement indicates that tables TABLE1 and TABLE2 are created in memory and immediately ordered.

In table TABLE1, a job scheduling definition, MYMEM1, is created and then ordered. In table TABLE2, a job scheduling definition, MYMEM2, is created and forced. (Both jobs are ordered or forced without saving external job scheduling definitions.)

Figure 23 CTMBLT – Example 4

//DAINPRM      DD  *

LIBRARY=name1                    

MEM-OVERWRITE=ORDER(WDATE)                    

ADD-GLOBAL=Y                                 

TABLE=TABLE1                                

      TABLE=TABLE1                      

      MEMLIB=GENERAL                         

      MEMNAME=MYMEM1                         

      OWNER=CTMBLT                              

      DESC='ORDER JOB MYMEM1’

      DAYS=ALL

      OUT=(MYMEM1-OK,ODAT,+)               

LIBRARY=name2                    

MEM-OVERWRITE=FORCE                      

TABLE=TABLE2                                   

      TABLE=TABLE2                        

      MEMLIB=GENERAL                            

      MEMNAME=MYMEM2                          

      OWNER=CTMBLT                               

      DESC='FORCE JOB MYMEM2'

      IN=(MYMEM1-OK,ODAT)                        

//

(Since the tables are created in memory, any library name can be specified. It does not need to correspond to an actual library or file.)

Parent Topic

Examples for CTMBLT