Can we delete the data using IEFBR14 , IEBGENER??
Answer Posted / 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 |
Post New Answer View All Answers
Explain about LMFREE�free data set from its association with data ID
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
what are the statements that are not valid to be included in an include statement?
Explain how can a jobs execution priority be modified?
What is one line to pass PARM from JCL to COBOL?
can any one plzzzzzz tell the jcl code for creating ps using idcams
Brief description of inline procedure of jcl.
Why include statement is used in a jcl?
What is the function of a dd statement?
how can the same proc be re-used and called by many jobs?
What is the purpose of disp parameter?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
how JCL works?
What is jcl in mainframe?