MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

computational clauses

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
kirank
Beginner


Joined: 21 Apr 2004
Posts: 61
Topics: 33
Location: hyderabad

PostPosted: Mon Sep 20, 2004 3:42 am    Post subject: computational clauses Reply with quote

Hello Sir,

Could you explain how to use computational clauses in cobol db2 programs.
I'm writing a cobol db2 program. I've already created a table with eno,esal with samllint datatype. And in my program , i've used comp,comp-3 with sign.
when i'm trying to insert the values into the table the values are not inserting properly. it is taking some other values like 11010 etc.

can u pls explain what is exact problem?

thanx
kiran.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Mon Sep 20, 2004 6:37 am    Post subject: Reply with quote

kiran,

A column defined as SMALLINT in DB2 is equivalent to S9(04) COMP. Please run the DCLGEN to get the equivalent cobol declarations for the DB2 column declarations.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group