How to pass return codes from cobol to jcl?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?
Which mode is used to operate the sequential file?
What are the differences between COBOL and COBOL II?
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks
What is the meaning of 'TALLING' verb in cobol?
wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..
WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.
What is the compute verb? How is it used?