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 the function of job statement in jcl?

872


How can unused space allocation be returned to the system when a dataset is closed?

1118


What are the rules employed while naming the steps in a job?

918


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2514


Explain the function of the dd dcb keyword?

947


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

9435


what is JCL?

927


Explain the function of the steplib dd statement?

848


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

921


how to compare two datasets without using superce because output is limited to 133 bytes

1803


List in order the hierarchical levels of jcl?

869


How can the disposition of sysout datasets be set for an entire jobstream?

1088


What are steplib and joblib? What for they are used?

901


How is a type of file defined in the jcl that executes the cobol program?

924


How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?

8089