JCL FOR CONCATENATE WITH EMPTY DATASET

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
sasanka
Member
Posts: 19
Joined: Wed Dec 29, 2010 11:37 pm
Location: hyderabad

JCL FOR CONCATENATE WITH EMPTY DATASET

Post by sasanka » Sat Jan 29, 2011 10:02 pm

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

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Re: JCL FOR CONCATENATE WITH EMPTY DATASET

Post by MrSpock » Sun Jan 30, 2011 5:48 am

sasanka wrote: ... so removing manually them by checking each dataset is taking some time
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:...can any one help me fix this ...
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
Member
Posts: 19
Joined: Wed Dec 29, 2010 11:37 pm
Location: hyderabad

Re: JCL FOR CONCATENATE WITH EMPTY DATASET

Post by sasanka » Sun Jan 30, 2011 11:47 am

MrSpock wrote:
sasanka wrote: ... so removing manually them by checking each dataset is taking some time
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:...can any one help me fix this ...
You haven't said what you want to do? Fix what? Do What? Using What (program, utility, process - what do YOU want to do)?
I want a jcl which will concatnate all the data sets and copy the concatnated results into other ps

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

himuengg
Member
Posts: 8
Joined: Tue Apr 27, 2010 11:48 pm

Post by himuengg » Sun Jan 30, 2011 11:47 am

@sasanka:ur query is not clear.Please clarify what exactly u want to know? Do u know what is concatenating?

himuengg
Member
Posts: 8
Joined: Tue Apr 27, 2010 11:48 pm

Post by himuengg » Sun Jan 30, 2011 11:54 am

:)

himuengg
Member
Posts: 8
Joined: Tue Apr 27, 2010 11:48 pm

Post by himuengg » Sun Jan 30, 2011 12:58 pm

try without using the iebgener . just put the file names under dd step and use SHR for every file.

Gyani
Member
Posts: 7
Joined: Sat Jan 08, 2011 1:28 pm
Location: HYB

Post by Gyani » Mon Jan 31, 2011 11:31 am

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

sasanka
Member
Posts: 19
Joined: Wed Dec 29, 2010 11:37 pm
Location: hyderabad

Post by sasanka » Mon Jan 31, 2011 10:28 pm

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?

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Feb 22, 2011 1:00 pm

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
JCL FOR CONCATENATE WITH EMPTY DATASET
and then you say
I will have datasets which are uncataloged
-- 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.

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

Post Reply

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



Other References
Mainframe Tools and others