Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

convert PD to ZD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
ram_vizag

New User


Joined: 21 Aug 2008
Posts: 92
Location: hyd

PostPosted: Sat Nov 05, 2016 3:06 am    Post subject: convert PD to ZD
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: 1715
Location: UK

PostPosted: Sat Nov 05, 2016 3:28 am    Post subject:
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

New User


Joined: 21 Aug 2008
Posts: 92
Location: hyd

PostPosted: Sat Nov 05, 2016 3:30 am    Post subject: Reply to: convert PD to ZD
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: 1715
Location: UK

PostPosted: Sat Nov 05, 2016 3:32 am    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Sat Nov 05, 2016 4:28 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Sat Nov 05, 2016 4:45 am    Post subject: Reply to: convert PD to ZD
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts help: convert C'00AB' to X'00AB' alan_gu DFSORT/ICETOOL 1 Thu Sep 29, 2016 12:22 pm
No new posts Convert Hex to readable format. harpreet_Saini19 DFSORT/ICETOOL 7 Wed Sep 14, 2016 5:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us