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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to left uncode disp?

804


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

839


Can we use DISP=SHR in output file in JCL

1070


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

758


What is the use of symbol // in jcl?

1017






What are the rules employed while naming the steps in a job?

778


For what purpose steplib and joblib are used ?

760


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

690


How can the attributes of one sms dataset be copied to another dataset?

968


what is the JCL statement consists of?

791


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

770


What parameter of the job statement is used to limit the cpu time consumed by the job?

933


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2089


what is DSN parameter and DISP parameter is used for?

764


What is the purpose of dd?

824