Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 ?    16 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

How much salary you are expecting? If they ask in an interview, what we have to tell?

6 Answers   Tech Mahindra, Wipro,


What is SET TO TRUE all about, anyway?

5 Answers  


Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.

3 Answers  


What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.

6 Answers   Mphasis, TCS,


Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,






Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?

3 Answers  


What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?

8 Answers   Arigo Infotech, IBM,


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


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

0 Answers  


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

2 Answers   ADP,






Categories