dummy out the multiple dataset
Moderators: Frank Yaeger, DikDude, Moderator Group
dummy out the multiple dataset
Dear all,
Can you please guide me to dummy out multiple dataset using JCL.
Note: The dataset should not be delete.
Thanks in advance.
Can you please guide me to dummy out multiple dataset using JCL.
Note: The dataset should not be delete.
Thanks in advance.
Hi,
Yes Guru, I want to dummy out many dataset.
Dikduke and Guru please consider the below scenario.
10 dataset have to concatenate into GDG and that GDG is the input to the program. If the program runs successfully, at last all the 10 dataset should be dummied out (empty) to avoid the repeat records next time when interface trigger input to that 10 dataset.
Using which utility I can do it? help me on this.
Thanks
Yes Guru, I want to dummy out many dataset.
Dikduke and Guru please consider the below scenario.
10 dataset have to concatenate into GDG and that GDG is the input to the program. If the program runs successfully, at last all the 10 dataset should be dummied out (empty) to avoid the repeat records next time when interface trigger input to that 10 dataset.
Using which utility I can do it? help me on this.
Thanks
Hello,
Assuming the files that need to be emptied are FB, LRECL 80.
You could try this below code,
Hope it helps.
Assuming the files that need to be emptied are FB, LRECL 80.
You could try this below code,
Code: Select all
//STEP0010 EXEC PGM=SORT
//SORTIN DD DUMMY,DCB=(LRECL=80,BLKSIZE=0,RECFM=FB)
//OUT1 DD DSN=WELLS.FILE.TO.BE.EMPTIED1,DISP=OLD
//OUT2 DD DSN=WELLS.FILE.TO.BE.EMPTIED2,DISP=OLD
//OUT3 DD DSN=WELLS.FILE.TO.BE.EMPTIED3,DISP=OLD
.
.
.
//OUT10 DD DSN=WELLS.FILE.TO.BE.EMPTIED10,DISP=OLD
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=(OUT1,OUT2,OUT3.....OUT10)
//*
Hope it helps.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page