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

What are the different open modes available in cobol?

713


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

1019


What are literals?

626


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1921


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.

928






In COBOL programming, what is PERFORM? What is VARYING?

668


Are you comfortable in cobol or jcl?

639


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1111


What are various search techniques in cobol? Explain.

641


What is rmode(any) ?

680


Why would you use find and get rather than to obtain?

679


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

808


For rewrite, why is it mandatory that file needs to be opened?

620


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

700


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5051