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 / sachin borase
//JOBNAME
//S1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(NEW,CATLG,DELETE)
//S2 EXEC PGM=SORT
//SORTIN DD DSN=FILE1
//SORTOUT DD DSN=FILE2,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
/*
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
In sms datasets, what is the function of the dd avgrec keyword?
What is use of restart and how to use it?
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
Where & How Do You Code Identifier In Jcl?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
what is DD statement is used in JCL?
How to submit jcl through a cobol program?
How does jcl specify the job to the operating system?
Explain dd statement in jcl?
Explain the function of //cntl statement?
What is the purpose of dd * statement in jcl?
Name the statement which can be used to send data to another mvs jes3 node?
What are some jcl statements that are not allowed in procedures?
what is SOC4 error?