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

Explain the purpose of dd dummy statement?

0 Answers  


i want to store 20 digits . how will u do it in cobol ?

0 Answers  


What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

3 Answers   IBM,


if we give TIME=0 how many sec that job/step

14 Answers  


How I sort the records in a file and copy the first 10 records to another file

5 Answers  






using cursor how can you fetch more than one record into a variable

3 Answers   Syntel,


What is S322 abend ?

5 Answers  


what will be the error code if duplicate key of VSAM file is found?

1 Answers   HSBC, Kings,


Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?

2 Answers  


what is the difference between return code and maxcc?

2 Answers   iGate,


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

0 Answers  


mainframe questions like basic&depth

0 Answers   TetraSoft,


Categories