Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8165
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: 6968
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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us