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 do you pass some input from JCL to PL1?

Answer Posted / amit krishna

You can pass inputs to a PL/1 Program through a JCL by two ways.

1- Through PARM.
Through this method PARM=parameter keyword is mentioned on the EXEC statement in JCL. The supplied PARM should be received through an argument in MAIN PL/1 program & Further declared accordingly.

//STEP02 EXEC PGM=PL1PGM,
// PARM='20110423'


PL1PGM: PROC(PARM) OPTIONS(MAIN);

2- Through SYSIN

Through this method SYSIN statement followed by the parameter to be placed in the JCL. In the PL/1 program

It is necessary to use a "//SYSIN DD *" statment in the JCL.

//STEP02 EXEC PGM=PL1PGM
|
|
//SYSIN DD *
20110423
/*

OR You can write the input in a file.
//SYSIN DD DISP=SHR,DSN=MY.INPUT.DATASET(INPUT)

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We have an output dataset in job with disp parameter as shr.

992


How many bytes does a s9(7) comp-3 field occupy ?

1006


Can I redefine an x(100) field with a field of x(200)?

1003


Name the versions of ibm mainframes have introduced in the market?

1023


What is meant by an isolation level?

1077


Where is the vsam ksds placed?

1025


What is defragmentation and what is its advantage?

1380


Can you explain referential integrity?

1062


List the type of locks and explain each of them.

972


Explain host variables?

1045


Name the various types of tables spaces.

1171


What is meant by comp-3 and what is it used for?

1093


What is the meaning of a (new, catalog, keep) disposition mean?

1195


Can I redefine an x(200) field with a field of x(100) ?

1283


Is it possible to move the alphanumeric variables to a numeric variable?

1289