How to execute a set of JCL statements from a COBOL program ?

Answer Posted / ram.g

pgm looks gud...but is it possible to have the jcl in input
file rather than creating o/p file in pgm and use the input
file to submit the jcl..by assinging whatever *.intrdr's dd
name to the i/p file...

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what EXEC statement is and what is the syntax of EXEC statement used in JCL?

872


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7401


Explain how can an in-stream dataset be terminated?

948


What is the function of dd name parameter with a 2 part structure; audit.report?

938


in ways data can be passed to a COBOL program from JCL?

861


Explain the function of //cntl statement?

873


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

942


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

2179


Where can program checkpoints be stored for use in a restart?

1132


define cond parameter in jcl?

989


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

974


how do you code a null statement?

1008


Explain the function of //jcllib statement?

929


what are the types of abends that occur on job failure? And explain the possible causes of these

1325


What parameters can be used to limit the number of records written to a sysout dataset?

984