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
 
Help required in S9(4) comp

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Vijay Gowda

New User


Joined: 02 Jun 2006
Posts: 7

PostPosted: Tue Jun 06, 2006 2:05 pm    Post subject: Help required in S9(4) comp
Reply with quote

Hi,

what is max value we can move to S9(4) comp.
I tried to move 10183 but it is taking 0183.

Please let me what I have to do to move full value

Thanks in advance.

Regards,

Vijay Gowda
Back to top
View user's profile Send private message

ralph_v

New User


Joined: 07 Jul 2005
Posts: 27

PostPosted: Tue Jun 06, 2006 2:14 pm    Post subject: Re: Help required in S9(4) comp
Reply with quote

Hi Vijay,

It will take only 4 values since it was declared as s9(04) comp.

Inorder to store the full value as in your case you need to declare it as S9(05)comp.

Hope i am clear.
Back to top
View user's profile Send private message
Vijay Gowda

New User


Joined: 02 Jun 2006
Posts: 7

PostPosted: Tue Jun 06, 2006 2:35 pm    Post subject:
Reply with quote

Hi,

In db2 we can not declare like that, we can declare half word or full word
but as per test book it has to take -32763 to 32763 but it is not taking.
I dont understand why is it so.

Regards,
vijay
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Jun 06, 2006 2:57 pm    Post subject:
Reply with quote

Well Vijay,

What is "test book" ?
Back to top
View user's profile Send private message
Vijay Gowda

New User


Joined: 02 Jun 2006
Posts: 7

PostPosted: Tue Jun 06, 2006 3:14 pm    Post subject:
Reply with quote

Hi Parikshit
It is typing mistake. TEXT BOOK or some books written on db2, I think now you can understand better.

Regards,

Vijay.
Back to top
View user's profile Send private message
anamikak

New User


Joined: 10 May 2006
Posts: 64
Location: Singapore

PostPosted: Wed Jun 07, 2006 7:12 pm    Post subject:
Reply with quote

Vijay,
S9(4) comp can take a maximum value 9999. that is why you had truncation at MSD when you tried moving 10183.
Back to top
View user's profile Send private message
Brian's_song

New User


Joined: 27 Dec 2005
Posts: 21

PostPosted: Sat Jun 10, 2006 8:24 am    Post subject:
Reply with quote

Hi,
for the S9(4), what is the usage the 'S'? As I know , it means the signal,'-" or '+', when displayed, it is like '+9999' or '-9999'. And it will not occupy the digit. That means S9(4) actually take 4 digit instead of 5 digit...

Am I right ? Correct me if wrong........Thanks.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Receommendations required for adding ... Alan Playford JCL & VSAM 4 Wed Feb 14, 2018 4:01 pm
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am

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