Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 118
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
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: 6966
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
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: 118
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
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: 2019
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: 642
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: 2019
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us