Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Feb 25, 2005 8:25 am Post subject:
Ranjish,
Post detailed information on what you're trying to accomplish. Do not make people guess what you mean. This will give you a much better chance of getting a good answer to your question.
The position of VAL is variable in your sample input. Post a sample input with expected output along with the DCB attributes of the file.
Joined: 22 Dec 2002 Posts: 64 Topics: 28 Location: Chennai
Posted: Fri Feb 25, 2005 8:55 am Post subject:
Kolusu,
Sorry about that.
Details are:
LRECL=80
The character 'x' occurs only once in each line and can be at position 30 or 31, followed by the desired VALue. It is of length 10. I need to take the values (can start either on position 31 or 32).
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Feb 25, 2005 11:25 am Post subject:
Quote:
'x' occurs only once in each line and can be at position 30 or 31
With z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004), you can use the new IFTHEN function to do this more easily and efficiently as follows. This job is set up for 'x' in 30 or 31 as requested (Kolusu's job is set up for 'X' in 31 or 32).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum