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 

calling cobol from ezytrieve

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


Joined: 19 Jul 2005
Posts: 4
Topics: 2
Location: USA

PostPosted: Tue Jul 19, 2005 9:47 pm    Post subject: calling cobol from ezytrieve Reply with quote

Hi all,
I am writing a Ezytrieve code which will call a cobol program. I need to pass S9(04) to this cobol program. I dont know how to define the same datatype in ezytrieve. Can someone help ?

Thanks,
naguveeru
Back to top
View user's profile Send private message Yahoo Messenger
dtf
Beginner


Joined: 10 Dec 2004
Posts: 110
Topics: 8
Location: Colorado USA

PostPosted: Wed Jul 20, 2005 12:00 pm    Post subject: Reply with quote

S9(04) is display numeric (4 bytes), is this what you intend? Or would it be COMP or COMP-3?
________
Rhode island marijuana dispensaries


Last edited by dtf on Tue Mar 15, 2011 5:03 am; edited 1 time in total
Back to top
View user's profile Send private message
naguveeru
Beginner


Joined: 19 Jul 2005
Posts: 4
Topics: 2
Location: USA

PostPosted: Wed Jul 20, 2005 2:21 pm    Post subject: Reply with quote

No there is no Comp defined. Actuall its the return code of SQLCODE.

this SQLCODE is returned from the Cobol program, and i am reading it in ezytrieve, I want to know which datatype shall that be defined as ?
Back to top
View user's profile Send private message Yahoo Messenger
naguveeru
Beginner


Joined: 19 Jul 2005
Posts: 4
Topics: 2
Location: USA

PostPosted: Wed Jul 20, 2005 10:57 pm    Post subject: Reply with quote

Can someone tell me some books on Eazsytrieve+DB2 or Easytrieve+Cobol-Db2.


thanks
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jul 27, 2005 6:49 am    Post subject: Reply with quote

Quote:

I need to pass S9(04) to this cobol program. I dont know how to define the same datatype in ezytrieve. Can someone help ?


S9(04) is a signed numeric field which occupies 4 bytes. so in easytreive just define it as

Code:

DEFINE PASS-VAR W 04 N 0


Quote:

No there is no Comp defined. Actuall its the return code of SQLCODE.


Fyi.. the sqlcode is indeed a comp field. so you need to define it as

Code:

DEFINE PASS-VAR W 02 B 0


Quote:

Can someone tell me some books on Eazsytrieve+DB2 or Easytrieve+Cobol-Db2.


Did you try the easytrieve manual from the main page of mvsforums?

www.mvsforums.com

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 -> Application Programming 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