Hi Guyz,
My requirement is to empty out a PS file but not to delete.
How would I do that. Is there any Utility. If any other
way, plz answer. Thanks.

Answer Posted / bill cecchini

Use the dataset itself to get the required DCB attributes.

//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD DUMMY,DCB=USERID.DATASET
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

898


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1611


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

812


how you can direct the data to spool using SYSOUT option?

914


What are the 4 fields in dd statement?

734






have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

914


How to run cobol program using jcl?

644


How can an in-stream dataset be terminated?

840


How do you submit a job for execution?

634


Explain the function of job statement in jcl?

637


What is the function of //jcllib statement?

793


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1657


Explain the job statement in jcl?

638


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

650


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2048