View previous topic :: View next topic
|
Author |
Message |
mtridib
New User
Joined: 30 Mar 2006 Posts: 4
|
|
|
|
One of the fields in my output file needs to be written based on two field values in the Input file. If there is no match for the criteria I need to keep the same value as was in the input file. Let me explain with an example.
INPUT FILE
------------
12 harry
11 tommy
I need to check this condition in my JCL.
If field 1 = 12 and field 2 = harry, change it to johny
else keep it same as the output file
Hence my output file will look like
johny
tommy
how do I achieve this? |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
What is the I/p file attribute and the two filelds length ?
Regards,
Priyesh. |
|
Back to top |
|
|
mtridib
New User
Joined: 30 Mar 2006 Posts: 4
|
|
|
|
Thanks for your help. I have solved it using CHANGE subparameter. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
I have solved it using CHANGE subparameter. |
Thats cool...
It can also be done by OVERLAY Feature of DFSORT with the help of IF-THEN. But You MUST have DFSORT for that.
Regards,
Priyesh. |
|
Back to top |
|
|
|