I have a COBOL program that Accepts some input data. How do
you code the JCL statement for this?
( How do you code instream data in a JCL? )
Answer Posted / sandeep
ONE WAY OF ACCEPTING THE DATA IS
// SYSIN DD*
VALUE1
VALUE2
*/
AND OTHER WAY YOU CAN USE PARM PARAMETER IN YOUR JCL.
IN APPLICATION PROGRAM USE THAT DATA THROUHG LINKAGE
SECTION.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the function of //cntl statement?
What dd statement is used to supply the name of a dataset?
How can unused space allocation be returned to the system when a dataset is closed?
What are steplib and joblib?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
what is the JCL statement consists of?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
what are the statements that are not valid to be included in an include statement?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What do you understand by the terms: joblib and steplib?
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
I need exexution process for JCL programs
What do you understand by the term notcat 2 – gs?
What is the function of job statement in jcl?