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

I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

1281


What are the parameters that are used in creating a gdg?

1275


What is the format of comment statement?

1276


What are the parameter we cannot use in procedure?

1193


Is their any set of rules for dd? Explain.

1266


how to compare two datasets without using superce because output is limited to 133 bytes

2163


What is the function of dd disp parameter?

1175


Differentiate between the joblib and the steplib statements?

1517


Explain the hierarchy levels in jcl?

1723


How can an in-stream dataset be terminated?

1392


What is the difference between the positional and keyword parameters? Give examples.

1317


what is the resolution for sb37 error

9252


Can we call instream to catalog and catalog to instream?

1188


What is the function of the dd dcb keyword?

1396


What are some jcl statements that are not allowed in procedures?

1287