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

Help required in S9(4) comp


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
No new posts convert alphanumeric PIC X(02) to hex... COBOL Programming 3
Search our Forums:

Back to Top