IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Concatenating all uploaded datasets in a day.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Naresh chinthaneppu

New User


Joined: 21 Jun 2007
Posts: 11
Location: pune

PostPosted: Wed Oct 10, 2007 3:47 pm
Reply with quote

Hi All,

My requirement is to concatenate all the datasets uploaded from pc to Host.i dont know how many files arre updated or what are their names...But i need to concatenate all the datasets uploaded within a day.

Could you please help me?....
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Oct 10, 2007 3:53 pm
Reply with quote

Adopt and ENFORCE some standards about naming,
(high level qualifier - for example )
how many is not a big problem

without this approach it is impossible to help You
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Wed Oct 10, 2007 3:53 pm
Reply with quote

pleas etry to provide some information. what will be the name format of files after uploading?
Back to top
View user's profile Send private message
Naresh chinthaneppu

New User


Joined: 21 Jun 2007
Posts: 11
Location: pune

PostPosted: Wed Oct 10, 2007 4:02 pm
Reply with quote

Actually i dont know who is going to upload them and there is no such naming standards .....My job is to just take a backup of all the datasets uploaded from 9AM to 6PM in a working day.

Hope you got it....
Back to top
View user's profile Send private message
Naresh chinthaneppu

New User


Joined: 21 Jun 2007
Posts: 11
Location: pune

PostPosted: Wed Oct 10, 2007 4:10 pm
Reply with quote

one more thing is my backup dataset should contain all the information concatenated....it is not like taking one backup dataset for one uploaded dataset.

not one to one backup.it is all into one dataset.
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Wed Oct 10, 2007 4:12 pm
Reply with quote

For that you can do concatnation, but for identifying the files at last there shold be some specific format.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Oct 10, 2007 4:49 pm
Reply with quote

It look like Your organization does not have the slightest idea about what an IT infrastructure should look like..
Lots of standards and documented procedures..
and a little bit of technology

NOTE. You is not You personally, but some IDtenT in Your organization

You do not know the names of the datasets.... OK !!!
You do not know how many there are... OK !!!
I Bet You do not even know the record format OK !!!
Are You sure at least that the content is of the same nature ???
......

by the first postulate and the unwillingness of Your IT organization
to enforce any standard
THERE IS NOTHING we can do for You.

Sorry about the rudeness of my statement, but that' the plain truth
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Oct 10, 2007 6:36 pm
Reply with quote

Hello,

While you and your organization decide how to approach your requirement, i'd suggest you make sure the pc(s)/server(s) retain a copy of whatever is uploaded. . .

If you don't know what is coming and you don't know what it will be named, how can it ever be used?

If the dcb attributes are not compatable, you won't be able to concatenate the data and use it.

If there can be some agreement on the high level dataset name qualifier(s), you could make a copy using dfdss - it might not be worth much, but it would be a copy. . .

I suspect there is more specific knowledge available and you/your management must gather it and make a real plan.
Back to top
View user's profile Send private message
Naresh chinthaneppu

New User


Joined: 21 Jun 2007
Posts: 11
Location: pune

PostPosted: Fri Oct 12, 2007 12:19 pm
Reply with quote

Hi all,

Thank you for your suggestions.

From this week onwards all the files uploaded(required for my project) should have

1.same high level qualifier.
2.same DCB parameters
3.same record format.

But they may be uploaded by different userids.

Even now i am not sure how to get all the files concatenated in one dataset.could you please help me further?

Thanks in advance.
Back to top
View user's profile Send private message
knageswarrao

New User


Joined: 12 Jun 2007
Posts: 2
Location: pune

PostPosted: Fri Oct 12, 2007 5:01 pm
Reply with quote

Hi all,
Here is my requirement,please suggest me

dncvoo.napdd1.xxxxx.aaaaa.sq300
dncvoo.napdd2.xxxxx.aaaaa.sq300
dncvoo.napdd3.xxxxx.aaaaa.sq300
dncvoo.napdd4.xxxxx.aaaaa.sq300 ----------- like this the files are uploaded into mainframes
but i don't know the how many files are there like this.

give me jcl solution for this to concatenate all these files.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Oct 12, 2007 8:41 pm
Reply with quote

Hello,

Quote:
1.same high level qualifier.
2.same DCB parameters
3.same record format.


A couple of methods come to mind:
First - run a listcat of everything that has this high level quailfier and then generate the copy jcl to concatenate all of them to the same DD (provided there will be less than 255 uploaded files per run). Submit the generated copy jcl and create the backup.
Second - Use a gdg and each upload creates a new +1 generation. When the "backup" job is run, use the unqualified gdg name and copy all existing generatins to a backup.

Even when there is a backup, how will the original data be used? If these remote systems will continually upload data, some plan needs to be in place to use the data (unless the only goal is to make a copy).

To me, it sounds like this could become a problem to maintain/support unless a complete plan is in place.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Oct 12, 2007 11:32 pm
Reply with quote

knageswarrao
Quote:
give me jcl solution for this to concatenate all these files.

Here you go:

Step#1. IDCAMS Listcat and get all the filenames
Step#2. Create REPRO control card dynamically - you can use Sort or some other utility
Step#2. IDCAMS above REPRO card to same OFILE, with DISP=MOD

This should work...enjoy
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
Search our Forums:

Back to Top