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

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Tue Oct 31, 2006 2:49 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts SMF record type 30 JCL & VSAM 8
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts How to move DB2 Installation HLQ DB2 4
No new posts Selective extract of multi-record-typ... SYNCSORT 4
Search our Forums:

Back to Top