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
 

 

pli conversion(pic->dec fixed)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
julian123

New User


Joined: 14 Aug 2006
Posts: 25

PostPosted: Thu Jun 05, 2008 8:50 am    Post subject: pli conversion(pic->dec fixed)
Reply with quote

i am a rookie in pli programming. now i have a question as following, pls help.

an input file
Code:
ABC00000294169560}    <- DATA
CCCFFFFFFFFFFFFFFD    <- HEX VALUE
123000002941695600    <- HEX VALUE


my qustion is
1. '00000294169560}' = -29416956.00 ?
2. i used PIC'S(12)9V99' to get '00000294169560}' , and moved it to DEC FIXED(15,2), i got '29416956.00', the sing('-') was lost, how to correct it?
Back to top
View user's profile Send private message

arunvenu

New User


Joined: 29 May 2008
Posts: 5
Location: Bangalore, India

PostPosted: Fri Jun 06, 2008 11:51 am    Post subject: Reply to: pli conversion(pic->dec fixed)
Reply with quote

How did you define the DATA variable? is it a CHAR?? Supply more information!!
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 06, 2008 7:33 pm    Post subject:
Reply with quote

Hello,

The "sending" field is zoned-decimal (PIC'S(12)9V99' is a typo, i suspect and should be PIC S9(12)V99). The "receiving" field is DEC FIXED(15,2).

Quote:
Supply more information!
What additional info do you want? I don't speak pli, but i would think the definition of a signed numeric field to be straightforward.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
No new posts Comparex utility to Syncsort conversion mistah kurtz SYNCSORT 11 Fri Jul 22, 2016 1:53 pm
No new posts changing z/os unicode conversion service meykh2014 All Other Mainframe Topics 0 Tue Jul 12, 2016 10:49 am


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