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 Pic 9v99 Indicates?

2 Answers  


Can we move X(7) to S9(7) COMP?

1 Answers  


Write a program that uses move corresponding.

0 Answers  


Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


I have a occurs for 100 times but it has executed 101 time what could be the reason?

4 Answers  






01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

0 Answers  


HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?

2 Answers  


is it possible to rename 01 level?

4 Answers  


How do you define a variable of COMP-1? COMP-2?

3 Answers  


How many sections are there in data division in COBOL?

0 Answers   B-Ways TecnoSoft,


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

0 Answers  


Categories