merge multiple seq files onto one



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

merge multiple seq files onto one

Postby dn2012 » Thu Feb 16, 2012 6:23 am

Hello All,
Source: SYSMC.TTT.AGNCYIMF.DATA

Under this I have following member/files.

SYSMC.TTT.AGNCYIMF.DATA.G1
SYSMC.TTT.AGNCYIMF.DATA.G2
SYSMC.TTT.AGNCYIMF.DATA.G3
SYSMC.TTT.AGNCYIMF.DATA.G4
SYSMC.TTT.AGNCYIMF.DATA.G5

My goal is to move these files onto another PDS and run the JCL for billing transaction.
Destination PDS.DESTIN.IMF310/ITD.SOURCE.

I created member called T021512 in the
How should I move all sequential files onto one PDS.DESTIN.IMF310/ITD.SOURCE.T021512

thx
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: merge multiple seq files onto one

Postby steve-myers » Thu Feb 16, 2012 6:36 am

  • Review the documentation for the preferred copy utility at your site. If there is none, review the documentation for IEBGENER.
  • Review the documentation about dataset concatenation in the JCL Reference manual for your z/OS release.
  • If you are unable to perform the preceding tasks, hire a consultant.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: merge multiple seq files onto one

Postby dn2012 » Fri Feb 17, 2012 2:22 am

I fixed it as below: (Do not need consultant ) :- )

SYSMC.TTT.AGNCYIMF.DATA.G1

//STEP010 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=SYSMC.TTT.AGNCYIMF.DATA.G1,DISP=SHR
// DD DSN=SYSMC.TTT.AGNCYIMF.DATA.G2,DISP=SHR
// DD DSN=SYSMC.TTT.AGNCYIMF.DATA.G3,DISP=SHR
// DD DSN=SYSMC.TTT.AGNCYIMF.DATA.G4,DISP=SHR
// DD DSN=SYSMC.TTT.AGNCYIMF.DATA.G5,DISP=SHR
//SYSUT2 DD DSN=IMSTESTA.IMF310.ITD.SOURCE(T021512 ),DISP=SHR
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//*
******************************** Bottom of Data ************************************
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: merge multiple seq files onto one

Postby BillyBoyo » Fri Feb 17, 2012 3:13 am

I'd put DISP=OLD on the SYSUT2. PDSs can get pickled by more than one thing updating at once. With "OLD" you have no danger of someone else (or yourself) updating at the same time.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: merge multiple seq files onto one

Postby dn2012 » Fri Feb 17, 2012 3:50 am

Thanks

You think it can also load duplicate values.
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: merge multiple seq files onto one

Postby dn2012 » Fri Feb 17, 2012 4:12 am

i CHAGED TO OLD BUT DID NOT WORK.
I PUT BACK DISP=SHR

BUT NOW GETTING MESSAGE AS:
14.40.42 JOB14951 $HASP165 DNMEMB ENDED AT LACMAS - ABENDED SE37 U0000 CN(INT
ERNAL)
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: merge multiple seq files onto one

Postby enrico-sorichetti » Fri Feb 17, 2012 4:26 am

and... what happened when You looked at the messages manual and at the systems codes manual ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: merge multiple seq files onto one

Postby BillyBoyo » Fri Feb 17, 2012 4:35 am

A member of a PDS is just a sequential file. You can have as many duplicates as you want.

In what way did DISP=OLD not work?

You need to learn how to look up messages, abend codes and things like that. Even if you google for Abend SE37 you'll find the information you need.

If you are putting lots of data into a member, and it is a PDS not a PDSE, you will get quite regular space problems. If you don't know anything about compressing a PDS, including making a back-up of it first, then get in touch with someone at your site who does, and seek their assistance. In a PDS, when a member is created, the space previously referenced by that member is just abandoned, to be recovered later by a compress. PDSEs recover the previously used space as they go along.

Maybe while doing your testing with bulk data, just use a plain sequential file, not a member.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: merge multiple seq files onto one

Postby steve-myers » Fri Feb 17, 2012 4:39 am

dn2012 wrote:... BUT NOW GETTING MESSAGE AS:
14.40.42 JOB14951 $HASP165 DNMEMB ENDED AT LACMAS - ABENDED SE37 U0000 CN(INT
ERNAL)

You also got an IEC032I message. You will find this message useful in your problem determination.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: merge multiple seq files onto one

Postby dn2012 » Fri Feb 17, 2012 4:47 am

I TRIED THIS BUT STILL GETTING SAME MESSAGE

Step 1: Start
Step 2: 3.4
Step 3: Provide the name of PDS
Step 4: Press ENTER
Step 5: Enter "Z" against the PDS
Step 6: Press ENTER
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post