View previous topic :: View next topic |
Author |
Message |
naguveeru Beginner
Joined: 19 Jul 2005 Posts: 4 Topics: 2 Location: USA
|
Posted: Tue Jul 19, 2005 9:47 pm Post subject: calling cobol from ezytrieve |
|
|
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 |
|
 |
dtf Beginner
Joined: 10 Dec 2004 Posts: 110 Topics: 8 Location: Colorado USA
|
Posted: Wed Jul 20, 2005 12:00 pm Post subject: |
|
|
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 |
|
 |
naguveeru Beginner
Joined: 19 Jul 2005 Posts: 4 Topics: 2 Location: USA
|
Posted: Wed Jul 20, 2005 2:21 pm Post subject: |
|
|
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 |
|
 |
naguveeru Beginner
Joined: 19 Jul 2005 Posts: 4 Topics: 2 Location: USA
|
Posted: Wed Jul 20, 2005 10:57 pm Post subject: |
|
|
Can someone tell me some books on Eazsytrieve+DB2 or Easytrieve+Cobol-Db2.
thanks |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Jul 27, 2005 6:49 am Post subject: |
|
|
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 |
|
 |
|
|