Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How jcl is used for testing batch programs?

1275


What is the motivation behind coding class parameter in job statement?

1172


A dd statement consists of 4 fields. Name them?

1418


Describe the various parameters utilized in the creation of a gdg?

1150


How to pass data to a program that is coded in an exec statement?

1329


how to do automated restart when a job abends?

1378


in ways data can be passed to a COBOL program from JCL?

1216


Explain the function of a dd statement?

1201


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1252


What are the utility programs in jcl?

1155


Explain the function of dd disp parameter?

1114


Explain how can a jobs execution priority be modified?

1197


List the different jcl statements that are not permitted in the procedures?

1075


What is Cataloged Procedures?

1160


What is the purpose of dd dummy statement?

1458