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
 

 

Problem in returing a parametr from cobol to Rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
smudunuru

New User


Joined: 01 Apr 2009
Posts: 7
Location: India

PostPosted: Thu May 28, 2009 12:04 am    Post subject: Problem in returing a parametr from cobol to Rexx
Reply with quote

I have a Rexx module calling a cobol program. It passes a Parm1 to cobol and cobol should return a parm2. My code is as below.

Code:

/* REXX */     
  ADDRESS TSO;
parm1 ='A'
parm2='B'
say parm1
say parm2
"ISPEXEC LIBDEF ISPLLIB DATASET                                   
 ID('xxxx.xxxx.LNKPGM1','xxxx.xxxx.LNKPGM2')"
"ISPEXEC SELECT CMD(COBPGM1"  parm1 parm2")"
say parm1
say parm2



But, Parm2 is having same value before and after the call of cobol program.( It is supposed to have a value of 'Y' or 'N' as set in the cobol program).

Can someone help to resolve this problem?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu May 28, 2009 12:29 am    Post subject: Reply to: Problem in returing a parametr from cobol to Rexx
Reply with quote

Does COBPGM1 do a VPUT of the variable parm2, so that the calling exec can use a VGET to obtain the content?
Back to top
View user's profile Send private message
smudunuru

New User


Joined: 01 Apr 2009
Posts: 7
Location: India

PostPosted: Thu May 28, 2009 12:44 am    Post subject:
Reply with quote

Here, COBPGM1 is a Cobol program. I think, we can use VPUT only in a Rexx module.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8054
Location: East Dubuque, Illinois, USA

PostPosted: Thu May 28, 2009 1:05 am    Post subject:
Reply with quote

Quote:
Here, COBPGM1 is a Cobol program. I think, we can use VPUT only in a Rexx module.
Even I know better than that, and I don't write ISPF interface routines.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Thu May 28, 2009 2:52 am    Post subject:
Reply with quote

smudunuru,

if you are going to be developing applications with REXX CALLing COBOL,
you need to familiarize yourself with ISPF Services

first you need to understand the interface requirements, ISPLINK .

after that, you can get into the detail of each of the different services,
which are outlined in the table of contents - the first link.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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