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.

Answers were Sorted based on User's Feedback



Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / 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

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / bill cecchini

Use the dataset itself to get the required DCB attributes.

//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD DUMMY,DCB=USERID.DATASET
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

Is This Answer Correct ?    6 Yes 1 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / mithun suresh

Hi, try this out

Option 1: Use IEBGENER Utility
//DELJOB JOB ..........
//STEP01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR

Is This Answer Correct ?    9 Yes 6 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / ram g

it will work with iebgener also ..create a dummy file with
fba format and use in your utility jcl

Is This Answer Correct ?    1 Yes 0 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / abhilash

Why are you wasting your time and CPU time ... just open
the file in edit mode and type D99999 before first
record ... it will empty the file.. Cheers..

Plz dont waste CPU time....

Is This Answer Correct ?    8 Yes 8 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / anand

//NUAEA62T JOB ,'DAILY REPORTS',
// MSGLEVEL=(1,1),MSGCLASS=Q,
// CLASS=D,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
//SYSUT2 DD DSN=Test,DISP=SHR
/*

Is This Answer Correct ?    0 Yes 1 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / pushpa

Yes we can do it by using the IEBGENER utility.

I have a question here By using the IEBGENER Utility I was
able to do this only for PS with RECFM =VB , but its not
working for PS with RECFM = FBA.

Is there any specific reason for this.

Please Clarify.

Is This Answer Correct ?    0 Yes 2 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / garry

Try This :

//JOBCARD
//STEP1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(MOD,DELETE,DELETE)
May need to code DCB and SPACE parameter.
//DD2 DD DSN=FILE1,DISP=(NEW,CATLG,CATLG)
MUST need to code DCB and SPACE parameter.
//

Ply respond with YES or NO.

Thanks

Garry

Is This Answer Correct ?    0 Yes 3 No

Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is ther..

Answer / 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

More JCL Interview Questions

which parameter is used to check the syntax of a jcl without executing it?

0 Answers   IBM,


is there any utility for restarting a particular step in jcl reply soon ?

5 Answers  


How to compare 2 files using File-Aid?

1 Answers   IBM,


can we write a proc with in a proc

4 Answers   IBM,


I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?

4 Answers  


Can we call instream to catalog and catalog to instream?

0 Answers  


//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES

5 Answers   IBM,


In job processing, what happens in conversion stage?

0 Answers  


CAN ANYONE TELL ME WHAT IS "JOB-CARD"

4 Answers   Syntel,


i have records from 1 t0 100 . i need to open records from 10 to 18 and change the values in tht ? how can i do tht ?

2 Answers   Syntel,


What are three major types of JCL statements? What are their functions?

1 Answers  


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

5 Answers   L&T,


Categories