IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem in returing a parametr from cobol to Rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu May 28, 2009 12:29 am
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu May 28, 2009 1:05 am
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: 6966
Location: porcelain throne

PostPosted: Thu May 28, 2009 2:52 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
Search our Forums:

Back to Top