View previous topic :: View next topic
|
Author |
Message |
KsquareD
New User
Joined: 14 Feb 2008 Posts: 4 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
KsquareD
New User
Joined: 14 Feb 2008 Posts: 4 Location: India
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Why would a MASTER FILE have thousands of copies? That doesn't sound like master file! |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|