Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Active User


Joined: 21 Aug 2008
Posts: 112
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: 2247
Location: Hampshire, 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

Active User


Joined: 21 Aug 2008
Posts: 112
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: 2247
Location: Hampshire, 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: 1789
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: 7312

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 Convert mainframe data to .csv format... karan_reddy DFSORT/ICETOOL 10 Sat Nov 02, 2019 2:09 am
No new posts Convert string to packed format ajaydwivedi4u COBOL Programming 6 Sat Sep 21, 2019 5:01 pm
No new posts Convert from 1/1/2019 to 01/01/2019 sudhakarraju DFSORT/ICETOOL 3 Fri Sep 20, 2019 1:16 am
No new posts Convert Numeric to Packed decimal and... anand1204 DFSORT/ICETOOL 5 Thu Aug 08, 2019 3:53 am
No new posts Convert alpha numeric to signed digits Balu5491 COBOL Programming 4 Mon Feb 25, 2019 10:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us