How do you set a return code to the JCL from a COBOL
program?

Answer Posted / suresh

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

MOVE 4 TO RETURN-CODE

Is This Answer Correct ?    34 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we get current date from system with century in COBOL?

1041


What rules are to be followed while using the corresponding options?

820


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7267


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1219


What is amode(31)

897






How to print 10 to 1 if the input have only 10 digit number?

1013


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

968


What are the pertinent COBOL commands?

2816


What is amode(24)?

863


In which area will you utilize 88 level items in cobol?

881


What are the access modes of START statement?

915


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

1016


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

841


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1151


how to refer the data field?

1979