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 / sachin borase

//JOBNAME

//S1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(NEW,CATLG,DELETE)

//S2 EXEC PGM=SORT
//SORTIN DD DSN=FILE1
//SORTOUT DD DSN=FILE2,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
/*

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a type of file defined in the jcl that executes the cobol program?

1140


what is the resolution for sb37 error

8948


How can a fb file convert to vb file using sort program?

1288


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

1099


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.

1169


how can you check if a file is empty using jcl?

1341


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

1406


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

1266


is there any way to execute more than one proc in the same exec statement at the same time..?

2580


How would you understand error(execution phase)?

1168


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1186


Explain about LMFREE�free data set from its association with data ID

1551


How to submit jcl through a cobol program?

1096


what are the types of abends that occur on job failure? And explain the possible causes of these

1554


how do you access an uncataloged dataset in a jcl?

1631