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

pli conversion(pic->dec fixed)


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 06, 2008 7:33 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Pulling a fixed number of records fro... DB2 2
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top