How to pass return codes from cobol to jcl?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between structured cobol programming and object-oriented cobol programming.

644


Write a program to enter and display the names of students in a class using the occurs clause.

618


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

647


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

625


Define cobol?

836






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

381


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

615


Explain what you understand by passing by value.

661


What is the Purpose of Pointer in the string?

619


What are the various section in data division and briefly explain them.

667


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10407


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

616


What is a scope terminator give example?

626


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

968


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

613