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
What are the rules employed while naming the steps in a job?
What are s0c1, s0c4, s0c5, s0c7 and socb?
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.
What is the format of comment statement?
how you can direct the data to spool using SYSOUT option?
What is NOTCAT ?
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?
what is use of space parameter in dd statement?
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
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
List the different components of jcl statement?
Explain about LMQUERY�give a dialog information about a data set
what is the JCL statement consists of?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
what is DD statement is used in JCL?