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
 
Calling REXX in Clist

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

New User


Joined: 28 Jan 2008
Posts: 10
Location: noida

PostPosted: Tue May 24, 2011 4:14 pm    Post subject: Calling REXX in Clist
Reply with quote

Hi,

I am trying to execute a rexx code in Clist. i am new to clist. can you please help me with examples on :
1. calling rexx from Clist
2. recieving a string as result from rexx into CLIST.

i tried to find the same information on internet. i understand that we can use VGET and VPUT. but how?
please reply with eg.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Tue May 24, 2011 4:30 pm    Post subject: Reply to: Calling REXX in Clist
Reply with quote

I don't think you need to use CLIST at all? Everything you can do in CLIST you can do in rexx, much more clearly. If you are up for torture, stick with your approach. Otherwise try to mainly forget about CLIST.
Back to top
View user's profile Send private message
deveshyahoo

New User


Joined: 28 Jan 2008
Posts: 10
Location: noida

PostPosted: Tue May 24, 2011 4:39 pm    Post subject:
Reply with quote

You are correct Bill.
I need to enhance an existing CLIST code. I am using REXX to achieve my target. But I don’t know how to call this REXX in CLIST and how to get a string of data back from the rexx to clist.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1782
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 4:42 pm    Post subject:
Reply with quote

deveshyahoo wrote:
I need to enhance an existing CLIST code. I am using REXX to achieve my target. But I don’t know how to call this REXX in CLIST and how to get a string of data back from the rexx to clist.

Rewrite the entire CLIST in Rexx.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue May 24, 2011 4:44 pm    Post subject:
Reply with quote

there was a good explanation (and links) provided in the COBOL forum recently about VGET/VPUT.

the syntax is similar thru-out programming languages.

there are many examples in the internet.

and I echo Bill's comment: unless you are a systems-programmer and have to use CLIST, don't.
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: Tue May 24, 2011 5:16 pm    Post subject: Reply to: Calling REXX in Clist
Reply with quote

You could just use a common temporary dataset. Write to it from the REXX exec, read from it in the CLIST.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1531
Location: Chennai

PostPosted: Tue May 24, 2011 5:22 pm    Post subject:
Reply with quote

Quote:
I don't think you need to use CLIST at all? Everything you can do in CLIST you can do in rexx,

Quote:
unless you are a systems-programmer and have to use CLIST, don't.


Pardon my ignorance, but could you please let me know why systems programmers only may need CLIST? Does it mean CLIST can do something that REXX cant?

Thanks in advance,
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue May 24, 2011 5:38 pm    Post subject:
Reply with quote

Quote:
why systems programmers only may need CLIST

i did not say that


Quote:
Does it mean CLIST can do something that REXX cant?

possibly, but I don't think so.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 687
Location: Pennsylvania

PostPosted: Tue May 24, 2011 5:39 pm    Post subject:
Reply with quote

Akatsukami wrote:
Quote:
Rewrite the entire CLIST in Rexx.


I had a boss tell me to do that once. In fact he had me rewrite every Clist I wrote into Rexx. It took several months.

He said CLIST is dead, Rexx is the future (maybe an overstatement).

That was in 1989.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 658
Location: Whitby, ON, Canada

PostPosted: Tue May 24, 2011 5:50 pm    Post subject:
Reply with quote

CLIST is as dead as Cobol. icon_lol.gif

I hated Rexx when I first saw it (too many damn quotes!) but I have come to prefer it over all other programming languages.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1782
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 7:08 pm    Post subject:
Reply with quote

daveporcelan wrote:
Akatsukami wrote:
Quote:
Rewrite the entire CLIST in Rexx.


I had a boss tell me to do that once. In fact he had me rewrite every Clist I wrote into Rexx. It took several months.

He said CLIST is dead, Rexx is the future (maybe an overstatement).

That was in 1989.

I take your point. OTOH, suppose the TS had written:
Quote:
I am trying to execute a C/370 subroutine from RPG II. i am new to RPG II. can you please help me with examples on :
1. calling C from RPG II
2. recieving a string as result from C into RPG II.

My advice would be: "Rewrite this program in C".
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 687
Location: Pennsylvania

PostPosted: Tue May 24, 2011 7:14 pm    Post subject:
Reply with quote

Akatsukami,

I think I did not make my point clearly.

I agreed with him, and since that time, I have written thousands of Rexx execs, and a very small handful of Clists.

While Clist is not dead, there is very little reason to use it.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10359
Location: italy

PostPosted: Tue May 24, 2011 7:18 pm    Post subject: Reply to: Calling REXX in Clist
Reply with quote

too many damn quotes icon_eek.gif

what about the gazillions of ampersands in a CLIST icon_biggrin.gif
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 658
Location: Whitby, ON, Canada

PostPosted: Tue May 24, 2011 10:41 pm    Post subject: Re: Reply to: Calling REXX in Clist
Reply with quote

enrico-sorichetti wrote:
too many damn quotes icon_eek.gif

what about the gazillions of ampersands in a CLIST icon_biggrin.gif
Yeah, I can barely stand to look at CLIST code anymore... makes me want to retch.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8596
Location: Back in jolly old England

PostPosted: Wed May 25, 2011 12:46 pm    Post subject:
Reply with quote

Don surely you mean amper retch icon_lol.gif
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 Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 6 Sun Nov 19, 2017 7:59 pm
This topic is locked: you cannot edit posts or make replies. ISREDIT Macro is not returning back t... nico_neoz CLIST & REXX 21 Sat Nov 18, 2017 7:40 pm
No new posts REXX LISTDSI () SMSINFO is not working upendrasri CLIST & REXX 4 Fri Nov 17, 2017 11:33 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am

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