View previous topic :: View next topic
|
Author |
Message |
akumaras
New User
Joined: 06 Jul 2012 Posts: 10 Location: india
|
|
|
|
Hi,
I have two input files with two variables A & B so my requirement is when ever it is A then that needs to be converted to B and then read the values of B and while writing it should write the same value to A.
So is it possible to change the control to B so that it can read the complete record of B and write the same to A?
Regards,
akumaras |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
clear as mud
if You want good answers, learn to ask CLEAR questions |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Looks like Encrypt Decrypt algorithm
I would just wanted to add on to what Enrico said
Please explain your requirement better with some values within codetag |
|
Back to top |
|
|
akumaras
New User
Joined: 06 Jul 2012 Posts: 10 Location: india
|
|
|
|
Sorry guys for not giving the complete info...Please find the requirement below
IF VEND = 12345
MOVE 88888 TO VEND
PERFORM READ FILE2
ELSE
MOVE VEND TO VEND1
READ FILE2
The problem i am facing is when passing the 88888 to vend,program is trying to read the values for vend 12345 only. So my requirement is after moving 88888 to vend then program needs to read the values of 88888 vend only. And while writing it should write the same values to vend 12345.Please help me in this and let me know if i am not clear on this. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Why not have a temp variable? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Are you doing a keyed read, but not changing the value in the key which is equivalent to the value in VEND? |
|
Back to top |
|
|
akumaras
New User
Joined: 06 Jul 2012 Posts: 10 Location: india
|
|
|
|
Its a keyed read only and vend is a part of key. So the key will be changed when vend is changed |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
So you need to add your new key and, if that is what you want, delete your old one. |
|
Back to top |
|
|
|