View previous topic :: View next topic
|
Author |
Message |
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
Hi ,
need your help in converting PD to ZD
I/P file
55733 ......20040405
O/P i am expecting
55733 -1113.5020040405
Please help me on this. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
What problem are you having - apart from the obvious one of not using code tags?
TO=ZD or something like that? |
|
Back to top |
|
|
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
I am getting SOC7 when I use TO=ZD.
Can You please post full syntax. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
No. You can read it up in the manual. Also you could show the control caards that you are using - the TO=ZD may not be the thing that is causing the S0C7. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
It's impossible to tell from your posting, but some or all of your data may not actually be packed decimal. Let's see the data in hexadecimal and the control cards you're using, enclosed in Code tags. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
To add, the output you show, with an explicit sign, and explicit decimal-point, is not "ZD". To get that output you'd use an EDIT mask. Lots of examples here, and description and many more examples in the documentation.
The content of the field causing the S0C7 is not valid. Could be bad data, could be badly-defined field (wrong start, length, type, or any combination including all three).
I can't think why TO=ZD need get a S0C7. So provide what has been asked.
You know to do this already. You have a long history of not being forthcoming with information, and of not taking the time to help people you want help from by even formatting things nicely.
Are you sure you are using DFSORT, even? Paste the messages from any SYSOUT for a SORT step so we can see what level of DFSORT you have, please. |
|
Back to top |
|
|
|