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

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

889


What are s0c1, s0c4, s0c5, s0c7 and socb?

921


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

933


What is the format of comment statement?

883


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

1138






What is NOTCAT ?

1021


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

836


what is use of space parameter in dd statement?

936


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

2247


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

987


List the different components of jcl statement?

854


Explain about LMQUERY�give a dialog information about a data set

1084


what is the JCL statement consists of?

881


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

2399


what is DD statement is used in JCL?

869