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 submit JCL via a Cobol program?

Answer Posted / bala

Jcl:
JOB: //STEP1 EXEC PGM=MAINPM
//DD1 DD DSN=MUTHU.TEST,DISP=SHR
//JCLDD DD SYSOUT=(*,INTRDR)

Cobol:
PROGRAM:MAINPGM
SELECT JCLFILE ASSIGN TO JCLDD…. (Environment Division)
FD JCLFILE.
01 JCL-REC PIC X(80). (File Section)
OPEN OUTPUT JCLFILE. (Open in output and write JCL statements)
MOVE ‘//TESTJOB JOB 1111’ TO JCLREC.
MOVE ‘//STEP01 EXEC PGM=IEFBR14’ TO JCLREC.
CLOSE JCLFILE (TESTJOB will be submitted automatically)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is automatic restart possible in jcl?

1187


What is multithreading in jcl?

1442


What is the motivation behind coding class parameter in job statement?

1166


Explain the purpose of dd dummy statement?

1200


can any one plzzzzzz tell the jcl code for creating ps using idcams

11638


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

2131


When space is allocated for an output dataset, what units can be used?

1246


define cond parameter in jcl?

1254


Can I send output of job to my remote device careerride123?

1115


Is their any set of rules for dd? Explain.

1168


What are hierarchy levels in jcl?

1509


what is use of disp parameter in dd statement?

1085


What do you understand by the terms: joblib and steplib?

1151


how do you access an uncataloged dataset in a jcl?

1715


What is the function of the steplib dd statement?

1179