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

Signed Character


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
som_infotech

New User


Joined: 25 Feb 2006
Posts: 38
Location: chennai-india

PostPosted: Sat Aug 22, 2009 2:07 am
Reply with quote

Hi,

I have the below field in numeric field,

01 VarA PIC S9(7)V99 COMP-3.

I have negative values as -133.90.

So to report it I used the below logic in EZ,,

Code:
Input file
NO-PRIOR 425 5 P 

Output file
O-NO-PRIOR  72 9 N MASK('ZZZZZZ9.99-')

working storage
WS-NO-PRI W 9 N MASK('ZZZZZZ9.99-').

Procedure

WS-NO-PRI = NO-PRIOR
O-OR-PRIOR = WS-NO-PRI


But I am not getting the negative values in the report.

whts the reason
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: Sat Aug 22, 2009 3:02 am
Reply with quote

Hello,

Quote:
I have negative values as -133.90.
Is the data actually packed or is the data received as posted?

Why is a working storage field used?

It may help if you post the content of the input no-prior in hex.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts String has hex character need to conv... COBOL Programming 3
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
No new posts Replacing character string in file th... JCL & VSAM 9
Search our Forums:

Back to Top