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

datastack operations using CList


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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 04, 2009 12:08 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Nov 04, 2009 12:35 pm
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

Superior Member


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

PostPosted: Wed Nov 04, 2009 3:17 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 04, 2009 7:48 pm
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
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
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: 792
Location: Pennsylvania

PostPosted: Thu Nov 05, 2009 10:36 pm
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

Global Moderator


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

PostPosted: Fri Nov 06, 2009 7:58 am
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: 400
Location: Mumbai

PostPosted: Fri Nov 06, 2009 10:53 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Same command as on commandline in REX... TSO/ISPF 6
No new posts clist to rexx converter CLIST & REXX 2
No new posts Is there a way to determine Clist usa... CLIST & REXX 10
No new posts REXX/CLIST tool for BCSR and EDSR CLIST & REXX 2
Search our Forums:

Back to Top