Can we delete the data using IEFBR14 , IEBGENER??
Answers were Sorted based on User's Feedback
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 |
Answer / tidda
just put DISP=(MOD,DELETE,DELETE)
pgm=XYZ will also do!
| Is This Answer Correct ? | 12 Yes | 6 No |
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 |
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 give instream data in procedure
i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
What is the function of the dd avgrec keyword in sms datasets?
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step
what is use of disp parameter in dd statement?
What is the use of IEBGENER ?
Is it possible to left uncode disp?
Can I send output of job to my remote device careerride123?
how you will the direct the data to spool using sysout option?
What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?
I have a PDS and want to omit few rows of all members of a PDS. How to do it?