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 |
Explain the purpose of dd dummy statement?
i want to store 20 digits . how will u do it in cobol ?
What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
if we give TIME=0 how many sec that job/step
How I sort the records in a file and copy the first 10 records to another file
using cursor how can you fetch more than one record into a variable
What is S322 abend ?
what will be the error code if duplicate key of VSAM file is found?
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?
what is the difference between return code and maxcc?
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.
mainframe questions like basic&depth