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 to pass values in jcl to cobol?

Answer Posted / muttaiah

We can pass data from JCL to Cobol in 3 ways.
1. SYSIN: Normally and using files
2. Parm Parameter in Exec stmt


1. Sysin: Using this we can pass large amount of data. The
data passed using sysin will be accepted in cobol using
accept statement in procedure division.

//sysin dd *
adbcde
/*

or

//sysind dd dsn=<filename>,disp=shr

2. Parm: The parm parameter in Exec is used to send 100
char's of data from jcl step to cobol. This is accepted in
cobol usign linkage section. LInkage section should be
coded with Lenght and data fields.

//Stepname exec pgm=<PGManme>,parm='100 chars max'

Hope this will give you a clear picture than the other 2
answers.

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2484


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

1090


How to submit jcl through a cobol program?

1112


what is DD statement is used in JCL?

1148


In sms datasets, what is the function of the dd mgmtclas keyword?

1350


Explain dd statement in jcl?

1064


Define concatenating?

1058


What is the syntax of JCL statement?

1172


Explain the function of the dd dcb keyword?

1196


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

1228


What are the 2 types of parameters in dd statement?

1114


How dummy is used in jcl?

1096


How is the record format of an output dataset specified?

1125


In job processing, what happens in execution stage?

1151


Name what parameter directs the output of the job log dataset?

1021