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
 

 

Is it must to convert the variable as S9(5) to store Sign

 
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: Thu Nov 02, 2006 12:29 pm    Post subject: Is it must to convert the variable as S9(5) to store Sign
Reply with quote

There is a variable in the format 9(4)V9(2) which has the first byte as the SIGN. It is to be converted to the format S9(5)V(2).

WARNING: TITLE EDITED
Back to top
View user's profile Send private message

ramesh_m

New User


Joined: 27 Sep 2006
Posts: 10
Location: Sydney

PostPosted: Thu Nov 02, 2006 2:03 pm    Post subject: Re: Urgent help
Reply with quote

Hi,
We can't have negative sign in the first byte of data format 9(4)V9(2).
only positive values we can store in this format. So here no point to transfer sign to other varriable
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Nov 04, 2006 5:08 am    Post subject:
Reply with quote

Hi Viv,

The best way to get an ans, is to show us how the field looks in storage. Then we may be able to advise you as to how it should be defined.

For example show us each char as 2 4-bit peices (nybbles) of each byte. +153 will appear as follows in storage (I'm not sure about the + sign value, but you get the idea):
Code:

4FFF
E153
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 Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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