Coding the JCL statements for exporting and importing labels


The following figure shows a generic example of the JCL to export and import labels. Two job steps are necessary. The example shows the statements that Database Integrity can use during the process.

//CONVERT  JOB (acct),'name',MSGCLASS=x,CLASS=c,NOTIFY=uuu
//*
//LBLXPORT EXEC PGM=DBIUBC00,REGION=4096K
//STEPLIB  DD DSN=BMC.XXX.LOAD,DISP=SHR
//         DD DSN=IMSx.RESLIB,DISP=SHR
//*
//DFSRESLB DD DSN=IMSx.RESLIB,DISP=SHR                   <=== IMS exec library
//RECON1   DD DSN=IMSx.RECON1,DISP=SHR                   <=== RECON1 data set
//RECON2   DD DSN=IMSx.RECON2,DISP=SHR                   <=== RECON2 data set
//RECON3   DD DSN=IMSx.RECON3,DISP=SHR                   <=== RECON3 data set
//dbilabel DD DSN=IMSx.DBILABELS,DISP=SHR                <=== optional label KSDS
//OUTFILE  DD DSN=IMSx.LBLXPORT,DISP=(NEW,CATLG,DELETE), <=== exported labels
//         UNIT=SYSDA,SPACE=(CYL,(10,2),RLSE),
//         DCB=DSORG=PS
//*
//DBIPRINT DD SYSOUT=*                                   <=== reports
//SYSUDUMP DD SYSOUT=*                                   <=== dumps
//PLUSOUT  DD SYSOUT=*                                   <=== BMC diagnostics
//*
//DBISYSIN DD *
  LBLXPORT control statement
//*
//LBLMPORT EXEC PGM=DBIUBC00,REGION=4096K
//STEPLIB  DD DSN=BMC.XXX.LOAD,DISP=SHR
//         DD DSN=IMSx.RESLIB,DISP=SHR
//*
//DFSRESLB DD DSN=IMSx.RESLIB,DISP=SHR                   <=== IMS exec library
//RECON1   DD DSN=IMSx.RECON1,DISP=SHR                   <=== RECON1 data set
//RECON2   DD DSN=IMSx.RECON2,DISP=SHR                   <=== RECON2 data set
//RECON3   DD DSN=IMSx.RECON3,DISP=SHR                   <=== RECON3 data set
//dbilabel DD DSN=IMSx.DBILABELS,DISP=SHR                <=== optional label KSDS
//INFILE   DD DSN=IMSx.LBLXPORT,DISP=(OLD,DELETE,KEEP)   <=== exported labels
//*
//DBIPRINT DD SYSOUT=*                                   <=== reports
//SYSUDUMP DD SYSOUT=*                                   <=== dumps
//PLUSOUT  DD SYSOUT=*                                   <=== BMC diagnostics
//*
//DBISYSIN DD *
  LBLMPORT control statement
//*

When exporting and importing labels, the significant DD statements are the ones that describe the IMS execution library and the label data set. The label data set can be the RECONs or a user-specified KSDS for both the export and import functions.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Database Integrity for IMS 5.2