View previous topic :: View next topic
|
Author |
Message |
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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
if it does not work ... FIX IT |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
rewrite your rexx script to be:
Code: |
/*REXX*/
trace ?r
ADDRESS ISPEXEC "EDIT DATASET("XXX.YYYY.DATA(MEM)")" |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
I am getting following error message
IRX0043I Error running ED, line 5: Routine not found
Now how to fix it ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Rexx will not try to resolve text within quotes. Rexx will try to resolve text outside of quotes. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
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. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Life is too short to be counting quotes and apostrophes. |
Where is the 'like' button? |
|
Back to top |
|
|
|