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

Display dataset in edit mode using rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Mon Mar 05, 2012 12:47 pm
Reply with quote

Hi

I want to write a rexx code to open a dataset in edit mode ,
I need to see it as if i opened from 3.4 option.

Please help.

I tried with below code but it does not work.

/*REXX*/
ADDRESS ISPEXEC "EDIT DATASET("XXX.YYYY.DATA(MEM)")"

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 05, 2012 1:07 pm
Reply with quote

Quote:
I tried with below code but it does not work.


so what do You want from us
I guess it would have put too much strain on Your neuron to post also the error icon_cool.gif

if it does not work ... FIX IT icon_evil.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Mar 05, 2012 1:31 pm
Reply with quote

rewrite your rexx script to be:

Code:
/*REXX*/
trace ?r
ADDRESS ISPEXEC "EDIT DATASET("XXX.YYYY.DATA(MEM)")"
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 05, 2012 1:39 pm
Reply with quote

Dick, You and I could have told the TS the error just by looking at the statement as posted ...

but I would like people start using the grey matter (*) inside their skull
and at least post properly

he certainly got a line xxx: Routine not found

(*) too often it' s just a place holder
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Mon Mar 05, 2012 2:17 pm
Reply with quote

I am getting following error message
IRX0043I Error running ED, line 5: Routine not found

Now how to fix it ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 05, 2012 2:20 pm
Reply with quote

by rereading carefully the statement You wrote
trying to understand what is the could be interpreted as a routine/function name

and what about using Trace "I" to debug
and obviously look at the manual for the meaning of the message
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Mar 05, 2012 4:57 pm
Reply with quote

Just a hint: I had been using Mark Zeleden's macros, with some customization, at most of the sites I had been to, for this purpose. Possibly, start with them as a reference, if you're not happy with the similar stuff posted on this fora!
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Mon Mar 05, 2012 10:33 pm
Reply with quote

Rexx will not try to resolve text within quotes. Rexx will try to resolve text outside of quotes.
Back to top
View user's profile Send private message
don.leahy

Active Member


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

PostPosted: Mon Mar 05, 2012 10:47 pm
Reply with quote

To add my usual advice: Use the HILITE REXX command to minimize this very common source of error. Life is too short to be counting quotes and apostrophes. icon_cool.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Mar 06, 2012 1:32 am
Reply with quote

Quote:
Life is too short to be counting quotes and apostrophes.


Where is the 'like' button?
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 HILITE on Browse mode? TSO/ISPF 2
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top