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


Please Help Members By Posting Answers For Below Questions

Explain about LMFREE�free data set from its association with data ID

1006


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?

786


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

610


what are the statements that are not valid to be included in an include statement?

776


Explain how can a jobs execution priority be modified?

742






What is one line to pass PARM from JCL to COBOL?

819


can any one plzzzzzz tell the jcl code for creating ps using idcams

10517


Brief description of inline procedure of jcl.

687


Why include statement is used in a jcl?

690


What is the function of a dd statement?

709


how can the same proc be re-used and called by many jobs?

909


What is the purpose of disp parameter?

645


//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 /*

911


how JCL works?

796


What is jcl in mainframe?

690