View previous topic :: View next topic
|
Author |
Message |
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Hi,
I have a file in .txt format. It is FTPd from the mainframe and I can use only the .txt fil as my program input. Starting from position 507, there is a amount value which I need to pick up to do some calculation.
The value is 0021000. From the mainframe copybook I came to know that the field description is as 9(5)V99.
As per my understanding is the amount here is 210.00.
Can any one tell me how would i can have this value? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Define the field like that, use it. It is exactly how it would look on any other dataset, according to your example. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Gosh, you want the edited value? Move tje PIC 9(5)V99 it to a PIC Z(4)9.99 field. |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Thanks Bill..It worked |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Glad it was what you wanted. Thanks for letting us know. |
|
Back to top |
|
|
|