how do u send return code from cobol to jcl ?

Answers were Sorted based on User's Feedback



how do u send return code from cobol to jcl ?..

Answer / srk

move 16 to return-code.

Is This Answer Correct ?    5 Yes 1 No

how do u send return code from cobol to jcl ?..

Answer / lu

EX : in step02 , your cobol program, u move 16 or something
else to return code...without define return code in
wss..and you test if return code = 16 in your step03

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More JCL Interview Questions

in job stmt i coded time=(2,30) and in step 1 i coded time=(1,30) and in step i coded time=(1,30), whch one executes first and what happens if step1 and step2 time executes and wht about the remaining time if step and step2 executes

4 Answers  


How can we increment subscript and index?

1 Answers   CTS, IBM,


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

0 Answers  


In job processing, what happens in conversion stage?

0 Answers  


I have DATE filed like DD-MM-YYYY, So I want output should be MM/DD/YYYY using JCL? Can anybody post the answer for above requirement?

4 Answers   BirlaSoft, FIS, Wipro,


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

1 Answers   Tesco,


What is the use of disp parameter?

0 Answers  


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


how to identify a vasam dataset by seeing in 3.4(browse)

5 Answers   Cap Gemini,


How do you designate a comment in JCL?

1 Answers  


Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?

5 Answers   IBM,


Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????

3 Answers  


Categories