IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

convert PD to ZD


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ram_vizag

Active User


Joined: 21 Aug 2008
Posts: 112
Location: hyd

PostPosted: Sat Nov 05, 2016 3:06 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Nov 05, 2016 3:28 am
Reply with quote

What problem are you having - apart from the obvious one of not using code tags?
TO=ZD or something like that?
Back to top
View user's profile Send private message
ram_vizag

Active User


Joined: 21 Aug 2008
Posts: 112
Location: hyd

PostPosted: Sat Nov 05, 2016 3:30 am
Reply with quote

I am getting SOC7 when I use TO=ZD.

Can You please post full syntax.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Nov 05, 2016 3:32 am
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Nov 05, 2016 4:28 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Nov 05, 2016 4:45 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Convert HEX to Numeric DB2 3
Search our Forums:

Back to Top