Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to copy a master file into many ps files in 1 job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
KsquareD

New User


Joined: 14 Feb 2008
Posts: 4
Location: India

PostPosted: Wed Feb 27, 2008 11:18 am    Post subject: How to copy a master file into many ps files in 1 job
Reply with quote

Hi All

How can i copy the records of a single master ps file into many(thousands) ps files in an single job so as to replace their contents with that of the master file.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Feb 27, 2008 12:42 pm    Post subject:
Reply with quote

Hi,

Yes You can do it using SORT (as post is in SORT forum). But You need to define rules how do You want the output to look like. Show some example records of input & output with additional informatoin about their RECFM & LRECL to get better replies.
Back to top
View user's profile Send private message
KsquareD

New User


Joined: 14 Feb 2008
Posts: 4
Location: India

PostPosted: Wed Feb 27, 2008 3:02 pm    Post subject: Reply to: How to copy a master file into many ps files in 1
Reply with quote

Well folks the actual requirement is that we have a master file of a specific lrecl and other datasets of the same lrecl and the master file is absolutely blank.
Correspondingly it is to be copied into many other datasets so as to delete their records too.
But the catch lies in the fact that the master file needs to be copied into the many other datasets using a single job.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Feb 27, 2008 8:02 pm    Post subject:
Reply with quote

Quote:
But the catch lies in the fact that the master file needs to be copied into the many other datasets using a single job
Is this another 'silly' requirement?
Quote:
How can i copy the records of a single master ps file into many(thousands) ps files in an single job so as to replace their contents with that of the master file.
Many, maybe yes, 'thousands', NO.....
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Feb 27, 2008 8:04 pm    Post subject:
Reply with quote

Why would a MASTER FILE have thousands of copies? That doesn't sound like master file!
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Feb 27, 2008 8:28 pm    Post subject:
Reply with quote

Code:
master file needs to be copied into the many other datasets using a single job.

Depending on your criteria and requirement, write your own COPY steps using ICETOOL copy statement or use IDCAMS REPRO.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Feb 27, 2008 10:52 pm    Post subject:
Reply with quote

You could use one or more DFSORT jobs like the following. Of course, there are system and DFSORT limitations, so I don't know how many output files you can actually use in one job.

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=... input file
//O0001 DD DSN=...  output file1
//O0002 DD DSN=...  output file2
...
//Onnnn DD DSN=...  output filennnn
//SYSIN    DD    *
  OPTION COPY
  OUTFIL FNAMES=(O0001,
      O0002,
      ...
      Onnnn)
/*
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Feb 28, 2008 2:17 am    Post subject:
Reply with quote

Hello,

I'm sure there is a need to create multiple thousand empty "master file" copies, but i cannot think of why this would be the chosen alternative.

If we understood the process(es) to be supported by this, we mikght be able to offer some alternatives.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us