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

how to allocate a dynamic dataset in jcl ?

3 Answers   Patni, TCS,


How many positional parameters are there in job statement?

4 Answers  


How do you restart a step in JCL?

12 Answers   HSBC,


IN DFSORT sum fields=none is usec to remove duplicates.how to write the duplicates in another dataset?

2 Answers  


Name what parameter directs the output of the job log dataset?

0 Answers  






If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?

3 Answers  


how to put a dependency on job in jcl using opc scheduler?

1 Answers   CTC,


What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?

2 Answers   IBM,


How to do automated restart when a job abend?

0 Answers  


what r the types of job control statements?

2 Answers  


How to send different PARM values based on the any condition to the program in a JCL? For example :- If the time is before 12:00 pm, I want to send "A" to some program and if it past 12:00 pm , I want to send "B" as a PARM value to that program. How to do it thur JCL only?

0 Answers   UHG,


What is GDG and what is the maximum limit of versions that can be created?

9 Answers   Convergys,


Categories