Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us