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
 

 

How do i move a value of type 9(4)V99 to S9(5)V99

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
viv
Currently Banned

New User


Joined: 31 Oct 2006
Posts: 4

PostPosted: Tue Oct 31, 2006 2:13 pm    Post subject: How do i move a value of type 9(4)V99 to S9(5)V99
Reply with quote

How do i move a value of type 9(4)V99 to S9(5)V99. I just tried by moving the values directly. It is not working. The example was

9(4)v99 had value 1111.11 and was moved to S9(5)v99, after moving the value, i displayed the values, it was

NAME1 = 111111 9(4)v99
NAME2 = 011111A S9(5)v99.

Can anyone give me a solution for this and also jsutify why this is the value in NAME2??

Thanks in advance.
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Oct 31, 2006 2:49 pm    Post subject:
Reply with quote

Hi there,

Here A representing the sign . If u want to see it in displayable format then u can move name2 to WS-NAME3

01 WS-NAME3 PIC +9(5).9(2).

But for the calculation purpose u can use name2.

Hope it will helpful
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Tue Oct 31, 2006 2:58 pm    Post subject: Re: Conversion
Reply with quote

Hi viv,

Because of the Editing character "." it is displaying the above value.
But the value moved to Name-2 is 1111.11 only.
Back to top
View user's profile Send private message
viv
Currently Banned

New User


Joined: 31 Oct 2006
Posts: 4

PostPosted: Tue Oct 31, 2006 6:43 pm    Post subject: Re: Conversion
Reply with quote

Thks dude(s) gottcha! icon_smile.gif
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Ccompar BLOB (images of type jpg) on ... nihad DB2 0 Sun Feb 05, 2017 3:13 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm


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