1 / 30

In-Stream Catalogued Procedures

In-Stream Catalogued Procedures. 1.

domani
Download Presentation

In-Stream Catalogued Procedures

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. In-Stream Catalogued Procedures 1

  2. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A //JOBLIB DD //JOBCAT DD //CALCBLG EXEC PGM=CALCBLG,TIME=2, // PARM=(CYCLE1,UPDATE) //STEPLIB DD //SYSUDUMP DD SYSOUT=A //INMASTER DD DISP=(OLD,KEEP,KEEP), // DSN=BILLING.MASTER //PAYCHGS DD DISP=(OLD,DELETE,KEEP), // DSN=BILLING.CHANGES, // UNIT=DISK //TAXTBLS DD DISP=SHR,DSN=TAX.TABLES2

  3. //UPDMSTER DD DISP=(NEW,CATLG,DELETE), // DSN=BILLING.MASTER, // UNIT=TAPE, // DCB=(LRECL=160,BLKSIZE=3200), // DCB=RECFM=FB) //BLGFILE DD DISP=(NEW,PASS,DELETE), // UNIT=SYSDA,DSN=BILLING.PRINT, // SPACE=(TRK,(20,5),RLSE), // DCB=(LRECL=100,BLKSIZE=4000) // DCB=(RECFM=VB) //ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) //SYSUDUMP DD SYSOUT=A3

  4. //BLGRPT DD SYSOUT=A //BILLS SYSOUT=(H,,DP12) //BLGFILE DD DISP=(OLD,DELETE,CATLG), // DSN=BILLING.PRINT // 4

  5. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A //CALCBLG EXEC PGM=CALCBLG,TIME=2, // PARM=(CYCLE1,UPDATE) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A //INMASTER DD DISP=(OLD,KEEP,KEEP), // DSN=BILLING.MASTER //PAYCHGS DD DISP=(OLD,DELETE,KEEP), // DSN=BILLING.CHANGES, // UNIT=DISK //TAXTBLS DD DISP=SHR,DSN=TAX.TABLES5

  6. //UPDMSTER DD DISP=(NEW,CATLG,DELETE), // DSN=BILLING.MASTER, // UNIT=TAPE, // DCB=(LRECL=160,BLKSIZE=3200), // DCB=RECFM=FB) //BLGFILE DD DISP=(NEW,PASS,DELETE), // UNIT=SYSDA,DSN=BILLING.PRINT, // SPACE=(TRK,(20,5),RLSE), // DCB=(LRECL=100,BLKSIZE=4000) // DCB=(RECFM=VB) //ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A6

  7. //BLGRPT DD SYSOUT=A //BILLS SYSOUT=(H,,DP12) //BLGFILE DD DISP=(OLD,DELETE,CATLG), // DSN=BILLING.PRINT // 7

  8. Catalogued Procedures 8

  9. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A //CALCBLG EXEC PGM=CALCBLG,TIME=2, // PARM=(CYCLE1,UPDATE) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A //INMASTER DD DISP=(OLD,KEEP,KEEP), // DSN=BILLING.MASTER //PAYCHGS DD DISP=(OLD,DELETE,KEEP), // DSN=BILLING.CHANGES, // UNIT=DISK //TAXTBLS DD DISP=SHR,DSN=TAX.TABLES9

  10. //UPDMSTER DD DISP=(NEW,CATLG,DELETE), // DSN=BILLING.MASTER, // UNIT=TAPE, // DCB=(LRECL=160,BLKSIZE=3200), // DCB=RECFM=FB) //BLGFILE DD DISP=(NEW,PASS,DELETE), // UNIT=SYSDA,DSN=BILLING.PRINT, // SPACE=(TRK,(20,5),RLSE), // DCB=(LRECL=100,BLKSIZE=4000) // DCB=(RECFM=VB) //ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A10

  11. //BLGRPT DD SYSOUT=A //BILLS SYSOUT=(H,,DP12) //BLGFILE DD DISP=(OLD,DELETE,CATLG), // DSN=BILLING.PRINT // 11

  12. JCL ListingMSGLEVEL=(1,1) 12

  13. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A //CALCBLG EXEC PGM=CALCBLG,TIME=2, // PARM=(CYCLE1,UPDATE) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A //INMASTER DD DISP=(OLD,KEEP,KEEP), // DSN=BILLING.MASTER //PAYCHGS DD DISP=(OLD,DELETE,KEEP), // DSN=BILLING.CHANGES, // UNIT=DISK //TAXTBLS DD DISP=SHR,DSN=TAX.TABLES13

  14. //UPDMSTER DD DISP=(NEW,CATLG,DELETE), // DSN=BILLING.MASTER, // UNIT=TAPE, // DCB=(LRECL=160,BLKSIZE=3200), // DCB=RECFM=FB) //BLGFILE DD DISP=(NEW,PASS,DELETE), // UNIT=SYSDA,DSN=BILLING.PRINT, // SPACE=(TRK,(20,5),RLSE), // DCB=(LRECL=100,BLKSIZE=4000) // DCB=(RECFM=VB) //ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A14

  15. //BLGRPT DD SYSOUT=A //BILLS SYSOUT=(H,,DP12) //BLGFILE DD DISP=(OLD,DELETE,CATLG), // DSN=BILLING.PRINT // 15

  16. Create AnIn-Stream PROC 16

  17. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A//BILLING PROC //CALCBLG EXEC PGM=CALCBLG,TIME=2, // PARM=‘CYCLE1,UPDATE’ //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A //INMASTER DD DISP=(OLD,KEEP,KEEP), // DSN=BILLING.MASTER //PAYCHGS DD DISP=(OLD,DELETE,KEEP), // DSN=BILLING.CHANGES, // UNIT=DISK //TAXTBLS DD DISP=SHR,DSN=TAX.TABLES17

  18. //UPDMSTER DD DISP=(NEW,CATLG,DELETE), // DSN=BILLING.MASTER, // UNIT=TAPE, // DCB=(LRECL=160,BLKSIZE=3200), // DCB=RECFM=FB) //BLGFILE DD DISP=(NEW,PASS,DELETE), // UNIT=SYSDA,DSN=BILLING.PRINT, // SPACE=(TRK,(20,5),RLSE), // DCB=(LRECL=100,BLKSIZE=4000) // DCB=(RECFM=VB) //ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A18

  19. //BLGRPT DD SYSOUT=A //BILLS DD SYSOUT=(H,,DP12) //BLGFILE DD DISP=(OLD,DELETE,CATLG), // DSN=BILLING.PRINT// PEND//BILLING EXEC BILLING //19

  20. JCL ListingMSGLEVEL=(1,1) 20

  21. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A//BILLING PROC //CALCBLG EXEC PGM=CALCBLG,TIME=2, // PARM=‘CYCLE1,UPDATE’ //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A //INMASTER DD DISP=(OLD,KEEP,KEEP), // DSN=BILLING.MASTER //PAYCHGS DD DISP=(OLD,DELETE,KEEP), // DSN=BILLING.CHANGES, // UNIT=DISK //TAXTBLS DD DISP=SHR,DSN=TAX.TABLES21

  22. //UPDMSTER DD DISP=(NEW,CATLG,DELETE), // DSN=BILLING.MASTER, // UNIT=TAPE, // DCB=(LRECL=160,BLKSIZE=3200), // DCB=RECFM=FB) //BLGFILE DD DISP=(NEW,PASS,DELETE), // UNIT=SYSDA,DSN=BILLING.PRINT, // SPACE=(TRK,(20,5),RLSE), // DCB=(LRECL=100,BLKSIZE=4000) // DCB=(RECFM=VB) //ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) //STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB //SYSUDUMP DD SYSOUT=A22

  23. //BLGRPT DD SYSOUT=A //BILLS SYSOUT=(H,,DP12) //BLGFILE DD DISP=(OLD,DELETE,CATLG), // DSN=BILLING.PRINT// PEND//BILLING EXEC BILLING++BILLINGPROC++CALCBLG EXEC PGM=CALCBLG,TIME=2,++ PARM=‘CYCLE1,UPDATE’++STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB++SYSUDUMP DD SYSOUT=A++INMASTER DD DISP=(OLD,KEEP,KEEP),++ DSN=BILLING.MASTER++PAYCHGS DD DISP=(OLD,DELETE,KEEP),++ DSN=BILLING.CHANGES,++ UNIT=DISK23

  24. ++TAXTBLS DD DISP=SHR,DSN=TAX.TABLES++UPDMSTER DD DISP=(NEW,CATLG,DELETE),++ DSN=BILLING.MASTER, ++ UNIT=TAPE,++ DCB=(LRECL=160,BLKSIZE=3200),++ DCB=RECFM=FB)++BLGFILE DD DISP=(NEW,PASS,DELETE),++ UNIT=SYSDA,DSN=BILLING.PRINT,++ SPACE=(TRK,(20,5),RLSE),++ DCB=(LRECL=100,BLKSIZE=4000)++ DCB=(RECFM=VB)++ISSBILLS EXEC PGM=ISSBILLS,TIME=(,30)++STEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB++SYSUDUMP DD SYSOUT=A24

  25. ++BLGRPT DD SYSOUT=A++BILLS SYSOUT=(H,,DP12)++BLGFILE DD DISP=(OLD,DELETE,CATLG),++ DSN=BILLING.PRINT25

  26. Create The Proc //CUSTBLG JOB ,SMITH,PRTY=7, // CLASS=A,MSGLEVEL=(1,1), // MSGCLASS=A //BILLING EXEC BILLING 26

  27. Executing The Proc //CUSTBLG JOB ,SMITH,PRTY=7, // CLASS=A,MSGLEVEL=(1,1), // MSGCLASS=A //BILLING EXEC BILLING 27

  28. JCL On SYSOUT Listing 28

  29. //CUSTBLG JOB ,SMITH,PRTY=7,CLASS=A, // MSGLEVEL=(1,1),MSGCLASS=A //BILLING EXEC BILLING XXCALCBLG EXEC PGM=CALCBLG,TIME=2, XX PARM=‘CYCLE1,UPDATE’ XXSTEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB XXSYSUDUMP DD SYSOUT=A XXINMASTER DD DISP=(OLD,KEEP,KEEP), XX DSN=BILLING.MASTER XXPAYCHGS DD DISP=(OLD,DELETE,KEEP), XX DSN=BILLING.CHANGES, XX UNIT=DISK29

  30. XXTAXTBLS DD DISP=SHR,DSN=TAX.TABLES XXUPDMSTER DD DISP=(NEW,CATLG,DELETE), XX DSN=BILLING.MASTER, XX UNIT=TAPE, XX DCB=(LRECL=160,BLKSIZE=3200), XX DCB=RECFM=FB) XXBLGFILE DD DISP=(NEW,PASS,DELETE), XX UNIT=SYSDA,DSN=BILLING.PRINT, XX SPACE=(TRK,(20,5),RLSE), XX DCB=(LRECL=100,BLKSIZE=4000) XX DCB=(RECFM=VB) XXISSBILLS EXEC PGM=ISSBILLS,TIME=(,30) XXSTEPLIB DD DISP=SHR,DSN=BILLING.LOADLIB XXSYSUDUMP DD SYSOUT=A30

More Related