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 from numeric to signed packed decimal using SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Nachal

New User


Joined: 04 Jul 2007
Posts: 3
Location: Chennai

PostPosted: Wed Jul 29, 2009 4:03 pm    Post subject: convert from numeric to signed packed decimal using SYNCSORT
Reply with quote

I have file with numeric data in it. I need to convert it to signed packed decimal. when i used the below code i was able to get only the unsigned packed decimal.

SORT FIELDS=COPY
OUTREC FIELDS=(1:9,6,34,5,1,8,41,8,15,8,ZD,TO=PD,LENGTH=5,
23,8,ZD,TO=PD,LENGTH=5)


Please let me know what i should do for the conversion
/*
Back to top
View user's profile Send private message

Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Wed Jul 29, 2009 6:09 pm    Post subject:
Reply with quote

Hi Nachal,

I am just a little curious to know ... how do u say that you are receiving only unsigned packed decimal.

Also, posting the input and output samples (HEX data) will help us in understanding the issue and hopefully solving the same.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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