Can we delete the data using IEFBR14 , IEBGENER??

Answers were Sorted based on User's Feedback



Can we delete the data using IEFBR14 , IEBGENER??..

Answer / sukumar

Yes, you can delete it... using IEFBR14
//JOB1 JOB NOTIFY=&SYSUT1
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=ISAM12.CLASS.PGM12,DISP=(MOD,DEL,DEL),UNIT=3390
//SYSIN DD DUMMY
//


But IEBGENER is used to concatenate a dataset / edit / copy

Is This Answer Correct ?    24 Yes 5 No

Can we delete the data using IEFBR14 , IEBGENER??..

Answer / tidda

just put DISP=(MOD,DELETE,DELETE)
pgm=XYZ will also do!

Is This Answer Correct ?    12 Yes 6 No

Can we delete the data using IEFBR14 , IEBGENER??..

Answer / karunakar reddy

Hey Try as below and see if the below JCL can help.

//DELETEDS JOB (@),'PREP T-2 FOR R01',
// REGION=0M,
// CLASS=C,MSGCLASS=X,
// NOTIFY=&SYSUID
//JS10 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DUMMY,DCB=SSR.TEST.FILE
//SYSUT2 DD DSN=SSR.TEST.FILE,DISP=(OLD,KEEP,KEEP)
//SYSIN DD DUMMY
//SYSUDUMP DD SYSOUT=*

Is This Answer Correct ?    4 Yes 6 No

Can we delete the data using IEFBR14 , IEBGENER??..

Answer / biswaranjan

Its possible.But 1st you have to delete the dataset and
recreate a empty dataset with the same name.

//XXXXXXXX JOB TEST,'SORT',
// MSGCLASS=X,
// CLASS=C,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=XXXXXXX.WORK.TEST,DISP=(MOD,DELETE,DELETE)
//SYSIN DD DUMMY
//STEP2 EXEC PGM=IEFBR14
//DD1 DD DSN=XXXXXXX.WORK.TEST,DISP=(NEW,CATLG,DELETE)
//SYSIN DD DUMMY
//

Is This Answer Correct ?    4 Yes 8 No

Can we delete the data using IEFBR14 , IEBGENER??..

Answer / sesha

in IEFBR14, give disp=(old,delete).

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More JCL Interview Questions

What are the common jcl syntax errors you get? This is not abends?

1 Answers  


what is “Cond= even” and “Cond=only”?

0 Answers  


What is a procedure?

1 Answers  


Explain the function of the dd dcb keyword?

0 Answers  


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

0 Answers  






What are the utility programs in jcl?

0 Answers  


What is the use of IEBGENER ?

2 Answers   Cap Gemini, Wipro,


how to split a file

4 Answers   IBM,


i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

1 Answers   IBM,


How to ALTER the name of a GDG ?

2 Answers   IBM,


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


What is the function of the steplib dd statement?

0 Answers  


Categories