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

There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to a procedure PROCA from a JOB. //STEP01 EXEC PROCA ... Here "PROCA" in JOB refers to the actual PROC name or the member name of the PDS where this PROCA is stored.

2 Answers   Merrill Lynch,


What is the difference between Sysin,Sysout,Sysdbout and Sysudump?

3 Answers  


//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES

5 Answers   IBM,


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

0 Answers  


what is instream data

2 Answers   EDS,






How to exclude the duplicate records from two concateded flat files (records from both files must be removed)?

1 Answers  


What are the parameter we cannot use in procedure?

0 Answers  


i have job card like this //job ***** //step1 exec pgm=iebgener //sysut1 dd dsn=main.sss,disp=shr // dd dsn=main1.sss,disp=shr // dd dsn=main2.sss,disp=shr //sysut2 dd dsn=out1.mmm ,disp=(new,catlg,delete) dcb=( ) // sysin dd * like this what i have to do to skip dsn=main1.sss please giveme answer asap

2 Answers   IBM, TetraSoft,


How can a stopped job be started again?

0 Answers  


If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed irrespective of the return code from the previous steps. How can it be done?

5 Answers   TCS,


A dd statement consists of 4 fields. Name them?

0 Answers  


Can anyone tell me the syntax for printing two files at two different destinations in a single step?

3 Answers  


Categories