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
 
Display dataset in edit mode using rexx

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

Active User


Joined: 17 Nov 2009
Posts: 125
Location: India

PostPosted: Mon Mar 05, 2012 12:47 pm    Post subject: Display dataset in edit mode using rexx
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

Moderator


Joined: 14 Mar 2007
Posts: 10475
Location: italy

PostPosted: Mon Mar 05, 2012 1:07 pm    Post subject: Reply to: Display dataset in edit mode using rexx
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: 6970
Location: porcelain throne

PostPosted: Mon Mar 05, 2012 1:31 pm    Post subject:
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

Moderator


Joined: 14 Mar 2007
Posts: 10475
Location: italy

PostPosted: Mon Mar 05, 2012 1:39 pm    Post subject: Reply to: Display dataset in edit mode using rexx
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: 125
Location: India

PostPosted: Mon Mar 05, 2012 2:17 pm    Post subject:
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

Moderator


Joined: 14 Mar 2007
Posts: 10475
Location: italy

PostPosted: Mon Mar 05, 2012 2:20 pm    Post subject: Reply to: Display dataset in edit mode using rexx
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

Senior Member


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

PostPosted: Mon Mar 05, 2012 4:57 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Mar 05, 2012 10:33 pm    Post subject: Reply to: Display dataset in edit mode using rexx
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: 662
Location: Whitby, ON, Canada

PostPosted: Mon Mar 05, 2012 10:47 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Mar 06, 2012 1:32 am    Post subject: Reply to: Display dataset in edit mode using rexx
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    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 Trap the jcl error message or maxcc i... ankita agarwal CLIST & REXX 5 Fri May 18, 2018 2:08 pm
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts Temp dataset unusual behavior sheersh JCL & VSAM 5 Tue May 08, 2018 9:52 pm
No new posts LE Modules in Link Edit John Poulakos COBOL Programming 1 Sat Apr 28, 2018 12:14 am
No new posts How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm

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