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 Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm


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