Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can we pass parameters from JCL to cobol
subprogram...my requirement is i should not get data from
mainprogram but i need it from JCL directly

Answer Posted / abhijit saha

You can do it using SYSIN parameter in JCl and ACCEPT in
COBOL-

JCL using SYSIN

//STEP01 EXEC PGM=CBLPRGM
//STEPLIB DD DSN=SOMETIME.DEMO.LOADLIB,DISP=SHR
//SYSIN DD *
This is a single parameter from STEP01 and SYSIN
/*

Cobol Pgm which uses this JCl

DATA DIVISION.
WORKING-STORAGE SECTION.
..........................
01 SYSIN-PARAMETER pic X(80) value SPACES.

PROCEDURE DIVISION.
..........................
ACCEPT SYSIN-PARAMETER from SYSIN

Is This Answer Correct ?    25 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of disp parameter?

1168


how you will the direct the data to spool using sysout option?

2472


Explain how can the submitting users racf authority be overridden in a job stream?

1186


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1217


How can values be passed from the job stream to an executable program?

1510


What is the function of job statement in jcl?

1138


what operation is performed by job statement?

1171


What are the 4 fields in dd statement?

1331


Are there any set of rules for the names of the steps used in a job?

1167


How can the submitting users racf authority be overridden in a job stream?

1346


List the various advantages of using jcl language?

1516


How do you create a temporary dataset?

1241


how can the same proc be re-used and called by many jobs?

1558


Explain how can a stopped job be started again?

1175


What is the use of symbol // in jcl?

1531