Judge the symbolic value. Perform different steps in jcl Based on the symbolic value.

Source: Internet
Author: User
Identification Division.
Program-id. myprog.

Environment Division.
Input-output section.

Data Division.
FILE Section.

Working-storage section.

Linkage Section.
01 parm.
03 PARM-LENGTH PIC s9 (04) comp sync.
03 THE-PARM.
05 channel pic x (01 ).

Procedure division using parm.
Display THE-PARM.
If channel = 'R' then move 1 to return-code
Else if channel = 'l' then move 2 to return-code
Else move 4 to return-code.
Stop run.

 

 And the jcl:

//*
// Set channel = 'l'
//*
// Step1 exec PGM = myprog, parm = '& channel'
// Steplib dd disp = SHR, DSN =...
// Sysout dd sysout = *
//*
// If (step0001.rc = 1) then
// Step2a exec PGM = process1
// Endif
// If (step0001.rc = 2) then
// Step2b exec PGM = process2
// Endif
//*

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.