How do you send the output of a COBOL program to a member of
a PDS?

Answers were Sorted based on User's Feedback



How do you send the output of a COBOL program to a member of a PDS?..

Answer / guest

Code the DSN as PDS (member) with a DISP = SHR. The DISP
applies to the PDS and not to a specific member.

Is This Answer Correct ?    7 Yes 0 No

How do you send the output of a COBOL program to a member of a PDS?..

Answer / anand.r

correct answer is
//iksa01j job
//step1 exec pgm=pgm1
//sysout dd dsn=pdsname(membername),disp=shr
//

Is This Answer Correct ?    6 Yes 0 No

How do you send the output of a COBOL program to a member of a PDS?..

Answer / chandrakant

For the output data set, code the name as the pds along with
the memner name. for example if you want to create a new
member abc in pds aa.bb.cc, then code it as
DD DSN=AA.BB.CC(ABC),
DISP=(NEW,CATLG,DELETE),
UNIT=your unit,
SPACE=(TRK(1,1),RLSE), --> this is only indicative
........

Is This Answer Correct ?    4 Yes 2 No

How do you send the output of a COBOL program to a member of a PDS?..

Answer / karthika

simply XDC the output after the run...

Is This Answer Correct ?    3 Yes 1 No

How do you send the output of a COBOL program to a member of a PDS?..

Answer / suputhru

Hey Guest,
you are doing great job, keep it up.

- SK.

Is This Answer Correct ?    1 Yes 0 No

How do you send the output of a COBOL program to a member of a PDS?..

Answer / vinay sonar

//STEP1 EXEC PGM=IEBGENER
//SYSUT1 DD SYSOUT=*
//SYSUT2 DD DSN='PDS NAME TO WHICH OUTPUT IS TO BE COPIED'

Is This Answer Correct ?    0 Yes 0 No

How do you send the output of a COBOL program to a member of a PDS?..

Answer / prasad

For the output data set, code the name as the pds along with
the memner name. for example if you want to create a new
member abc in pds aa.bb.cc, then code it as
DD DSN=AA.BB.CC(ABC),
DISP=(NEW,CATLG,DELETE),
UNIT=your unit,
SPACE=(TRK(1,1),RLSE), --> this is only indicative

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

What is the difference between primary and secondary allocations for a dataset?

8 Answers  


Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.

2 Answers   UHG,


how can we override data definitions in jcl. can any one give detailed example

3 Answers   TCS,


What is S322 abend ?

5 Answers  


AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE FILES IN JCL? CAN I GET THE PROGRAM FOR THIS

3 Answers  






There are two steps in a JCl, the first one generates a report while the second step send an email saying the report has been generated, but the second steps should only be executed when the report file is non-empty. How can it be acheived. We may include steps in between.

3 Answers   IBM,


Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE

8 Answers   IBM,


List the different jcl statements that are not permitted in the procedures?

0 Answers  


How to submit a jcl from cics?

0 Answers  


Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???

4 Answers  


How to fetch even records from one file to another file by using ICETOOL in JCL?

3 Answers  


In JCl which of this activities get executed if act002 abnormally terminates //job001 job ......... //act001 exec pgm=cobo01 //act002 exec pgm=cob02, cond=(01,le) //actoo3 exec pgm=cob03, cond=only //actoo4 exec pgm=con04

3 Answers   Patni,


Categories