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

Explain in DD statement what is the use of DCB parameter?

1117


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

1195


What is use of restart and how to use it?

1290


Why block size is multiple of lrecl in jcl?

1390


What is NOTCAT ?

1299


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

1058


Is their any limit for data sets?

1167


What is the use of disp parameter?

1121


How can return codes be tested before execution of a job step?

1467


What does a disposition of (new,catlg,keep) for a dsn mean?

1128


when can a job time-out occur? How to overcome that?

1263


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

1249


Is automatic restart possible in jcl?

1184


what is the difference between JES3 and JES2?

1113


How can an in-stream dataset be terminated?

1326