How to pass return codes from cobol to jcl?

Answers were Sorted based on User's Feedback



How to pass return codes from cobol to jcl?..

Answer / ashl

Use the return-code variable and set to the desird value

move 16 to return-code

Is This Answer Correct ?    17 Yes 3 No

How to pass return codes from cobol to jcl?..

Answer / nishanthini

MOVE VALUE TO RETURN-CODE register

Is This Answer Correct ?    4 Yes 0 No

How to pass return codes from cobol to jcl?..

Answer / vivek

Move a value to RETURN-CODE register. RETURN-CODE should
not be declared in your program.

Ex: MOVE 4 TO RETURN-CODE

Is This Answer Correct ?    5 Yes 1 No

How to pass return codes from cobol to jcl?..

Answer / hari

move value to retun-code it should not declared in working -storage section.
by using internalreader we can pass the data from cobol to jcl
//sysout dd sysout=(*,intrdr)

Is This Answer Correct ?    4 Yes 0 No

How to pass return codes from cobol to jcl?..

Answer / prasanna

thnks!!!

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is SDSF?

13 Answers   IBM,


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  


Can JUSTIFIED be used for all the data types?

3 Answers  


What is sqlca and why is it needed in any cobol-db2 program?

1 Answers  


We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.

1 Answers  






COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks

1 Answers  


which of the following can be used as a check protection symbol a.Z b.S c.* d.+

2 Answers   TCS,


What is amode(31)

0 Answers  


What is the different between index and subscript?

3 Answers  


How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.

7 Answers   CGI, TCS,


soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?

7 Answers   CitiGroup, IBM,


Categories