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 is NOTCAT ?
How does jcl act on code(if you take a cobol program)?
List the different jcl statements that are not permitted in the procedures?
what is DSN in JCL and what are the parameters to declare the DSN?
What is the purpose of dd * statement in jcl?
What do you understand by the terms: joblib and steplib?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
Is their any limit for data sets?
Give the syntax of job specifying jcl statement.
Brief description of inline procedure of jcl.
How to submit jcl through a cobol program?
write a jcl to execute a job by 7:00 am on jan 20,1986?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
what is SOC4 error?