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
 

 

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 Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm
No new posts FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm


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