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
 
datastack operations using CList

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

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Nov 04, 2009 11:51 am    Post subject: datastack operations using CList
Reply with quote

Hi,
Can anyone tell me if we can perform datastack operations using CList?
If yes, please provide me pointers to the material on CList-datastack operations

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

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10310
Location: italy

PostPosted: Wed Nov 04, 2009 12:08 pm    Post subject: Reply to: datastack operations using CList
Reply with quote

if You' d clarify better Your requirements You might get better help

anyway it would be wiser to use REXX rather than CLIST
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Nov 04, 2009 12:15 pm    Post subject:
Reply with quote

Hi Enrico,

I do not have any requirement (as such). I'm just curious to know if there is anyway you can access the mainframe datastack through a CList als oo, the way we do in REXX

I'm good at CList and I'm starting to grow more fascinated to it than to REXX. Hence, I'm trying to find if there's anyway I do not have to write REXX exec for basic datastack operations

Thank you icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Nov 04, 2009 12:35 pm    Post subject:
Reply with quote

What is the mainframe datastack - 35 years on mainframes and it is the very first time I have heard that expression icon_surprised.gif

CLIST is becoming more and more rare as the far superior capabilities of REXX become more widely used.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Nov 04, 2009 3:17 pm    Post subject:
Reply with quote

expat wrote:
CLIST is becoming more and more rare as the far superior capabilities of REXX become more widely used.
Whole heartly accepted.

AD 2009 you do not write CLIST anymore, you write REXX and by inserting a "trace ?r" statement you can see what's actually happening and even change variables on-the-fly.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10310
Location: italy

PostPosted: Wed Nov 04, 2009 7:48 pm    Post subject: Reply to: datastack operations using CList
Reply with quote

Quote:
I'm good at CList and I'm starting to grow more fascinated to it than to REXX.


then it should not be difficult to find what You are looking for in the manuals
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4B840/CCONTENTS?SHELF=IKJ4BK80&DN=SA22-7781-04&DT=20060627214234

anyway that' s Your choice, but is against any good judgment and practices
do not expect people to spend time on Your issues
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Nov 04, 2009 8:17 pm    Post subject:
Reply with quote

Thanks Enrico
No luck with the link (I already have it in PDF)

I guess datastack is a feature of REXX and not available standalone on the mainframe (from expat's comments)

Correct me if I'm wrong
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 683
Location: Pennsylvania

PostPosted: Thu Nov 05, 2009 10:36 pm    Post subject:
Reply with quote

Vishwamurthy - At one I was in the same position as you.

I was good at Clist.

My manager told me I was no longer allowed to write in Clist (at least while they were paying for my time).

I could only write in REXX. I also had to re-write all the Clists I had written into REXX as my spare time allowed.

I am so glad he did that. That was 1989 (twenty years ago), and I have not written a new CLIST since (I have modified others kicking and screaming).

The point here is (if you haven't got it already)... DO NOT WRITE IN CLIST!!

If you are good it Clist, then you will be really good at REXX.

Fascinating.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2083
Location: Silicon Valley

PostPosted: Fri Nov 06, 2009 7:58 am    Post subject: Reply to: datastack operations using CList
Reply with quote

I agree with everyone else: learn rexx.

But having said, that...
The rexx reference manual describes the IRXSTK routine which is used to manipulate the rexx data stack. It might be possible to write an assembler routine that calls IRXSTK and which you could call from somewhere else.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Fri Nov 06, 2009 10:53 am    Post subject:
Reply with quote

The stack is part of TSO, not Rexx per se. but you probably don't want to code at that level. If you just need a place to store data, you might consider ISPF variables or tables or maybe a temporary data set.

And I echo everyone elses sentiment. CLIST=*pain*, Rexx=*happiness*
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Fri Nov 06, 2009 11:26 am    Post subject:
Reply with quote

MBabu wrote:
The stack is part of TSO, not Rexx per se. but you probably don't want to code at that level. If you just need a place to store data, you might consider ISPF variables or tables or maybe a temporary data set.

And I echo everyone elses sentiment. CLIST=*pain*, Rexx=*happiness*


Thank you icon_smile.gif I'm using a dataset for the same

dave, thanks for the eye opener. I'm using REXX now icon_smile.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 Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm

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