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
What is notcat 2 - gs?
Is their any limit for data sets?
What is use of restart and how to use it?
List the various advantages of using jcl language?
How does jcl act on a cobol code?
Differentiate between the joblib and the steplib statements?
Is it possible to code instream data in a PROC?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
What is the function of the dd mgmtclas keyword in sms datasets?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Which statement is used to identify the private libraries in job?
What is one line to pass PARM from JCL to COBOL?
What are steplib and joblib? What for they are used?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
What is the maximum length of a single line of jcl?