How to send data from cobol program to jcl?

Answers were Sorted based on User's Feedback



How to send data from cobol program to jcl?..

Answer / gaurav

We can set the RETURN-CODE in COBOL which is passed to JCL

Is This Answer Correct ?    14 Yes 0 No

How to send data from cobol program to jcl?..

Answer / challa srinivas

We can send output as a (PDS member) with DISP=SHR. The DISP applies to the PDS and not to specific member.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More JCL Interview Questions

What is the improvement to COND= in the latest version of MVS?

3 Answers  


when can a job time-out occur? How to overcome that?

0 Answers   IBM,


Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which of the other steps get executed)? 1) //s3 exec pgm=abc,cond=(0,le) 2) //s3 exec pgm=abc,cond=(0,le,step2) 3) In the jobcord RESTART=step3,cond=(0,le) 4) can i code COND=TRUE in jobcard, if yes what will happen?

3 Answers   TCS, Tech Mahindra,


Explain about LMCLOSE�close a data set

1 Answers  


For how long a job can be executed continuously in a mainframe ?

4 Answers  






Can you delete the GDG base without deleting GDG generations ?

7 Answers   Cap Gemini,


I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.

5 Answers   Bank Of America,


Explain the function of the dd dcb keyword?

0 Answers  


When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?

1 Answers   IBM,


how many types of sorts are there in jcl?

2 Answers   IBM,


i have job card like this //job ***** //step1 exec pgm=iebgener //sysut1 dd dsn=main.sss,disp=shr // dd dsn=main1.sss,disp=shr // dd dsn=main2.sss,disp=shr //sysut2 dd dsn=out1.mmm ,disp=(new,catlg,delete) dcb=( ) // sysin dd * like this what i have to do to skip dsn=main1.sss please giveme answer asap

2 Answers   IBM, TetraSoft,


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

0 Answers   IBM,


Categories