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 about Specifying compiler options in the PROCESS (CBL) statement

1 Answers  


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


can a job be submitted through jcl only? is there another way to submit a job?

2 Answers   CSC,


Using DELETE what type of file can you delete? a)SEQUENTIAL FILE B)INDEXED FILE C) D) Some options were there..i cant remember

3 Answers   HSBC,


WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.

1 Answers  






how to see the latest generation in gdg?

3 Answers   Deloitte,


How to alter the parameters for the existing gdg?

0 Answers  


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

0 Answers  


I had 100 steps in jcl i want to execute first 10 steps only?

6 Answers   IBM,


What are the valid DSORG values ?

3 Answers  


How would you understand error(execution phase)?

0 Answers  


please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,

1 Answers   IBM,


Categories