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

IF I mention stop run in CICS what happens?

0 Answers   IBM,


How many variables can be declared in w-s section.?

2 Answers  


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

0 Answers   EDS,


can we use full outer join with cursors declared in cobol program?

2 Answers  


What is the significance of 'above the line' and 'below the line'?

2 Answers   Nokia,






How do u initialize an array?

2 Answers   CTS,


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad

35 Answers  


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 57397 is moved to pic $$,$$9.

5 Answers  


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


Categories