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 are the utility programs in jcl?

1153


Explain the job statement in jcl?

1153


what is use of dsn parameter in dd statement?

1148


Is it possible to code instream data in a PROC?

1317


How can a stopped job be started again?

1184


Explain about LMQUERY�give a dialog information about a data set

1433


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5531


Matching Logic in Jcl not in cobol.Could any one please answer this question

4149


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

1135


How can the disposition of sysout datasets be set for an entire jobstream?

1328


What are hierarchy levels in jcl?

1517


In job processing, what happens in execution stage?

1190


Define concatenating?

1093


How do you overcome this limitation ?

1197


Explain the function of the dd dcb keyword?

1244