View previous topic :: View next topic
|
Author |
Message |
ramvishwa Warnings : 2 New User
Joined: 18 Dec 2006 Posts: 18 Location: bangalore
|
|
|
|
Hi,
The following are my requirement, please find me a solution.
I have one Base GDG, which is my source file. Let's say File A.
I have two VSAM file's which are my destination files.Let's say File B and C.
Now i need to repro file A , either into file B or File C based upon one condition. The conditions is, i need to check a value in the file A and based on the value i need to decide whether i have to move to file B or File C. (i.e)
From File A If XX field value is '5'
Repro file A to file B
Else
Repro File A to file C
Endif.
Please let me know if there is any solutions to achieve this.
Thnx
Ramvishwa. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
You can use SORT to build solution for your requirement. |
|
Back to top |
|
|
ramvishwa Warnings : 2 New User
Joined: 18 Dec 2006 Posts: 18 Location: bangalore
|
|
|
|
Sorry i dont have any idea on Sort.. Please provide me with some sample examples for the requirement.
Thnx
Ramvishwa. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Are we talking individual records from file A here, or will there be one single control for the whole of file A ??? |
|
Back to top |
|
|
ramvishwa Warnings : 2 New User
Joined: 18 Dec 2006 Posts: 18 Location: bangalore
|
|
|
|
Hi expat,
It all of individual record. If the File A has a value of '5' in a particular field, I need to move into File B or else it needs to move to File C. This is my requirement.
Thnx
Ramvishwa. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Then you would need to split file A into two files using sort depending on your condition,
Then sort both of the two created files into KSDS key order,
and then perform the REPRO operation. |
|
Back to top |
|
|
|