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

Conditions need to check for repro


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Mon Feb 25, 2008 12:16 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon Feb 25, 2008 12:37 pm
Reply with quote

You can use SORT to build solution for your requirement.
Back to top
View user's profile Send private message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Mon Feb 25, 2008 1:22 pm
Reply with quote

Sorry i dont have any idea on Sort.. Please provide me with some sample examples for the requirement.

Thnx
Ramvishwa.
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: Mon Feb 25, 2008 5:06 pm
Reply with quote

Try looking at DFSORT/ICETOOL Reference Material for an idea.....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 25, 2008 5:40 pm
Reply with quote

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
View user's profile Send private message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Mon Feb 25, 2008 6:43 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Feb 25, 2008 7:17 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to load to DB2 with column level ... DB2 6
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Db2 SQL - how to switch among differe... DB2 18
No new posts How to check whether who renamed the ... JCL & VSAM 3
Search our Forums:

Back to Top