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 load from rexx program

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


Joined: 15 Apr 2005
Posts: 26
Topics: 9

PostPosted: Wed Apr 20, 2005 5:36 pm    Post subject: calling cobol load from rexx program Reply with quote

Hi,

I am calling a cobol load from my Rexx program as below. But the data is not getting passed correctly. Please let me know if I need to make any changes to the below call.

Code:

/*Rexx*/
address tso "call 'MY.COBOL.LOADLIB(TEST1234)' 'ABCDE'"
----------------------


* COBOL Program
Code:

LINKAGE SECTION.
01 VAR1 PIC X(05).           
PROCEDURE DIVISION USING VAR1.
       DISPLAY ' VAR1=' VAR1
       GOBACK.
----------------------


The displays in the cobol are coming as
VAR1= :ABC

Thanks in advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 20, 2005 5:51 pm    Post subject: Reply with quote

bullfighter,


Please do not post the same question in more than 1 forum. I deleted your duplicate post in the utilities forum.

You need to define the parm length field in the linkage section. Try this code

Code:

Linkage Section.

01 L-VAR.
   02 PARM-LEN    PIC S9(4) comp.
   02 PARM-DATA   PIC X(05).

PROCEDURE DIVISION USING L-VAR.


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
bullfighter
Beginner


Joined: 15 Apr 2005
Posts: 26
Topics: 9

PostPosted: Wed Apr 20, 2005 7:23 pm    Post subject: Reply with quote

thanks for your reply,

I have another query,

I am accessing an IMS database from the COBOL load, how do I pass the PSB in the REXX program

Thanks in Advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 20, 2005 8:47 pm    Post subject: Reply with quote

bullfighter,

Please search before posting. check this links which discusses about calling IMS from REXX

http://www.mvsforums.com/helpboards/viewtopic.php?t=2691&highlight=ims

http://www.mvsforums.com/helpboards/viewtopic.php?t=3268&highlight=ims

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