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
 

 

Conditions need to check for repro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Conditions need to check for repro
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    Post subject:
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    Post subject: Reply to: Conditions need to check for repro
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: 2150
Location: At my coffee table

PostPosted: Mon Feb 25, 2008 5:06 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 25, 2008 5:40 pm    Post subject:
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    Post subject: Reply to: Conditions need to check for repro
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: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 25, 2008 7:17 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm
No new posts Check special resource availability w... pinimo JCL & VSAM 8 Fri Apr 15, 2016 8:18 pm


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