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

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


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Wed Feb 27, 2008 12:42 pm
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
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: 2146
Location: At my coffee table

PostPosted: Wed Feb 27, 2008 8:02 pm
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
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
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 Developer


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

PostPosted: Wed Feb 27, 2008 10:52 pm
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

Moderator Emeritus


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

PostPosted: Thu Feb 28, 2008 2:17 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top