How do you send the output of a COBOL program to a member of
a PDS?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / suputhru
Hey Guest,
you are doing great job, keep it up.
- SK.
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
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 |
What is the difference between primary and secondary allocations for a dataset?
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.
how can we override data definitions in jcl. can any one give detailed example
What is S322 abend ?
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
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.
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
List the different jcl statements that are not permitted in the procedures?
How to submit a jcl from cics?
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 ???
How to fetch even records from one file to another file by using ICETOOL in JCL?
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