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 / mithun suresh

Pushpa, I created a PS with FBA and put some recs in and
ran the same above JCL. To me it worked. Have u checked
what error u r getting. Try the below stuff with SORT util.

//STEP01 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=USERID.DATASET,DISP=SHR
//SORTOUT DD DSN=USERID.DATASET,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY,STOPAFT=0

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the parameters which can be used to limit the number of records written to a sysout dataset?

648


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

600


How can unused space allocation be returned to the system when a dataset is closed?

800


What statement can be used to send data to another mvs jes3 node?

810


In job processing, what happens in conversion stage?

725






Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

666


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

688


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:

3522


Explain how can return codes be tested before execution of a job step?

817


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

823


write a jcl to execute a job by 7:00 am on jan 20,1986?

687


what JCL Procedures?

693


How to submit a jcl from cics?

656


What is the use of symbol // in jcl?

918


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1801