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

Issue with Browse command in REXX


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Tue Dec 13, 2011 8:30 pm
Reply with quote

Hi All,

I am trying to browse a dataset from a REXX program

Code:
Code:

/* REXX */                                                     
"ISREDIT MACRO"                                                 
ADDRESS ISREDIT                                                 
"BROWSE  DATASET("ABCD.HLQ2.HLQ3.REPORT.DEC1311.T095232")"
exit                                                           


But I am getting following error message
Code:
                          ISPF Edit Macro Error                               
Command ===>                                                                   
                                                                               
******************************************************************************
*                                                                            *
* Command in error . : BROWSE  DATASET(ABCD.HLQ2.HLQ3.REPORT.DEC1311.T *
*                                                                            *
* Invalid member name                                                        *
* Member name "DATASET(ABCD.HLQ2.HLQ3.REPORT.DEC1311.T095232)" exceeds *
*                                                                            *
*   Error message ID . : ISRE764                                             *
*                                                                            *
*   Last return code . : 12                                                  *
*                                                                            *
*   Macro executing  . : ZOOM                                                *
*                                                                            *
* Press ENTER key to terminate the macro.                                    *
*                                                                            *
*                                                                            *
*                                                                            *
******************************************************************************


Can you please help me, what is the problem with my code.

Thanks in advance.

Thanks,
Sati
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 13, 2011 8:31 pm
Reply with quote

Put the dataset name in single quotes
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Dec 13, 2011 8:32 pm
Reply with quote

Too many nodes in your dataset.

No sign of a membername. Haven't looked at the code.
Back to top
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Tue Dec 13, 2011 8:38 pm
Reply with quote

Hi expat,

I tried by putting dataset name in single quotes but no luck same error with below messge

Code:

                          ISPF Edit Macro Error                               
Command ===>                                                                   
                                                                               
******************************************************************************
*                                                                            *
* Command in error . : BROWSE  DATASET('ABCD.HLQ2.HLQ3.REPORT.DEC1311. *
*                                                                            *
* Invalid member name                                                        *
* Member name "DATASET('ABCD.HLQ2.HLQ3.REPORT.DEC1311.T095232')" excee *
*                                                                            *
*   Error message ID . : ISRE764                                             *
*                                                                            *
*   Last return code . : 12                                                  *
*                                                                            *
*   Macro executing  . : ZOOM                                                *
*                                                                            *
* Press ENTER key to terminate the macro.                                    *
*                                                                            *
*                                                                            *
*                                                                            *
******************************************************************************


Hi Bill,

I didn't get you. Can you please explain little more

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 13, 2011 8:43 pm
Reply with quote

OMG icon_biggrin.gif
just looking at the five liner provided

Address ISREDIT BROWSE/VIEW/EDIT
takes as only <parameter> a string identifying a member of a PDS[e] being edited in the session where the macro is invoked

Address ISPEXEC BROWSE/VIEW/EDIT
on the other side takes a lot more parameters with a lot more of opportunities tio make mistakes

but the TS could have found it by himself just looking at the ISPF manuals here ( old but more than enough for the issue discussed )
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ISPZPM70
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: Tue Dec 13, 2011 8:47 pm
Reply with quote

What happens if you change "ADDRESS ISREDIT" to "ADDRESS ISPEXEC"?

I suspect that it is trying to execute BROWSE as an edit subcommand.
Back to top
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Tue Dec 13, 2011 8:47 pm
Reply with quote

I got it,

I am suppose to use
Code:

ADDRESS ISPEXEC


It's working fine now.

Thanks,
Sati
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Dec 13, 2011 8:48 pm
Reply with quote

The fine manual says:
Quote:
ISRE764 Invalid member name - Member name "aaaaaaaa" exceeds 8-character allowable length.

Explanation:
The member name is invalid for the EDIT, VIEW, or BROWSE command.

User response:
The member name may not exceed 8 characters. Correct the member name and try the command again.

Does this offer any hints?

ETA: And both Dr. Sorichetti and Mr. Leahy got in ahead of me. Oh, well. icon_neutral.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Dec 13, 2011 8:57 pm
Reply with quote

try ADDRESS ISPEXEC
instead of ISREDIT.

an ISREDIT BROWSE will only open an member of a PDS,
which is the same as the PDS which contains the current member (the one in which the ISREDIT MACRO is 'functioning')

you want an ISPF Service BROWSE
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Dec 13, 2011 8:59 pm
Reply with quote

sorry for the post,
took so long to gather the links,
that 15 others answered the question before I did.
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: Tue Dec 13, 2011 9:05 pm
Reply with quote

Could it be we all have too much time on our hands? icon_biggrin.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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
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
Search our Forums:

Back to Top