JCL FOR CONCATENATE WITH EMPTY DATASET
Moderators: Frank Yaeger, DikDude, Moderator Group
JCL FOR CONCATENATE WITH EMPTY DATASET
Hi
i'm having 26 datasets which are to be concatenated
but in 26 datasets there will be atleast 4 datasets which i don't no
so removing manually them by checking each dataset is taking some time
can any one help me fix this using a jcl
i'm having 26 datasets which are to be concatenated
but in 26 datasets there will be atleast 4 datasets which i don't no
so removing manually them by checking each dataset is taking some time
can any one help me fix this using a jcl
Re: JCL FOR CONCATENATE WITH EMPTY DATASET
Well, that's just stupid. Of course, if your company prefers that it be done that way, and would rather pay that cost in labor instead of assuring that they aren't empty to begin with, then that's their decision.sasanka wrote: ... so removing manually them by checking each dataset is taking some time
You haven't said what you want to do? Fix what? Do What? Using What (program, utility, process - what do YOU want to do)?sasanka wrote:...can any one help me fix this ...
Re: JCL FOR CONCATENATE WITH EMPTY DATASET
I want a jcl which will concatnate all the data sets and copy the concatnated results into other psMrSpock wrote:Well, that's just stupid. Of course, if your company prefers that it be done that way, and would rather pay that cost in labor instead of assuring that they aren't empty to begin with, then that's their decision.sasanka wrote: ... so removing manually them by checking each dataset is taking some time
You haven't said what you want to do? Fix what? Do What? Using What (program, utility, process - what do YOU want to do)?sasanka wrote:...can any one help me fix this ...
i have used iebgener to do this but getting erro because of the empty datasets
so can we ignore those error by not deleting the data sets manually
Hi Sasanka,
I will just modify ur question,
You want to "Apend data from 26 files to single ps file. And you are using iebgener for it. But as u said ur getting error because of some of the data sets are empty and iebgener is not accepting it. So currently u r manually chking empty datasets and removing it from iebgener and then submitting d job" Rht?
Sasanka,
Alternate solutions u can use is
1. Sort , DFsort utility: Use copy all sortin ps files into single sortout ps.
2. If ur requirement is just to use 26 files as a i/p for any other processing and u dont need single PS file u can "just put the file names under dd step and use SHR for every file."
3. Also i have a doubt, as per my knwldge iebgener support the empty datasets.
Thanks,
Gyani
I will just modify ur question,
You want to "Apend data from 26 files to single ps file. And you are using iebgener for it. But as u said ur getting error because of some of the data sets are empty and iebgener is not accepting it. So currently u r manually chking empty datasets and removing it from iebgener and then submitting d job" Rht?
Sasanka,
Alternate solutions u can use is
1. Sort , DFsort utility: Use copy all sortin ps files into single sortout ps.
2. If ur requirement is just to use 26 files as a i/p for any other processing and u dont need single PS file u can "just put the file names under dd step and use SHR for every file."
3. Also i have a doubt, as per my knwldge iebgener support the empty datasets.
Thanks,
Gyani
Gyani wrote:Hi Sasanka,
I will just modify ur question,
You want to "Apend data from 26 files to single ps file. And you are using iebgener for it. But as u said ur getting error because of some of the data sets are empty and iebgener is not accepting it. So currently u r manually chking empty datasets and removing it from iebgener and then submitting d job" Rht?
Sasanka,
Alternate solutions u can use is
1. Sort , DFsort utility: Use copy all sortin ps files into single sortout ps.
2. If ur requirement is just to use 26 files as a i/p for any other processing and u dont need single PS file u can "just put the file names under dd step and use SHR for every file."
3. Also i have a doubt, as per my knwldge iebgener support the empty datasets.
Thanks,
Gyani
Thanks gyani for exactly explaing the question the way i want
I have thw following datasets
TDX2.ITCA1.BASEF2
TDX2.ITCA1.BASEF1
TDX2.ITCA1.CIS
TDX2.ITCA2.BASEF2
TDX2.ITCA2.BASEF1
TDX2.ITCA2.CIS
LIKE THIS IM HAVING 26 SETS WITH EACH SET CONSISTING
of 3 data sets
now i need to concat all the basef2(26 1 from each set) into a single BASEF2 dataset
similarly for basef1,cis
now im using the following code
//step1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=TDX2.ITCA1.BASEF2,DISP=SHR
// DD DSN=TDX2.ITCA2.BASEF2,DISP=SHR
// DD DSN=TDX2.ITCA3.BASEF2,DISP=SHR
.... ......
........ DD DSN=TDX2.ITCA26.BASEF2,DISP=SHR
//SYSUT2 DD DSN=TDX2.ITCA.BASEF2,DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(10,10))
// DCB=(*.SYSUT1)
//
NOW MY PROBLEM IS
out of the datasets i have mentioned in the SYSUT1
I will have datasets which are uncataloged
so when i'm using this program its saying dataset is not found i.e some datastes wont be created.
so i'm deleting it manually
is there any JCLwhich will ignore that message and continue processing?
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Terminology is critical in IT. I've seen confusion about similar terms quite often but in your case the terms you've used to explain your problem are not even remotely related.
You started with
If you want to concatenate many data-sets and some of them are empty - it won't any difference and no error will be flagged as long as all the DS exists.
You started with
and then you sayJCL FOR CONCATENATE WITH EMPTY DATASET
-- as far as your problem goes, what an "empty data-set" got to do with "uncataloge data set"? Possibly an explanation is needed from you.I will have datasets which are uncataloged
If you want to concatenate many data-sets and some of them are empty - it won't any difference and no error will be flagged as long as all the DS exists.
Regards,
Anuj
Anuj
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