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
 

 

Issue with Browse command in REXX

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

Active User


Joined: 10 Aug 2009
Posts: 158
Location: India

PostPosted: Tue Dec 13, 2011 8:30 pm    Post subject: Issue with Browse command in REXX
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: 8593
Location: Back in jolly old England

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

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Tue Dec 13, 2011 8:32 pm    Post subject: Reply to: Issue with Browse command in REXX
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: 158
Location: India

PostPosted: Tue Dec 13, 2011 8:38 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Dec 13, 2011 8:43 pm    Post subject: Reply to: Issue with Browse command in REXX
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 )
http://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: 641
Location: Whitby, ON, Canada

PostPosted: Tue Dec 13, 2011 8:47 pm    Post subject:
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: 158
Location: India

PostPosted: Tue Dec 13, 2011 8:47 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Tue Dec 13, 2011 8:48 pm    Post subject:
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    Post subject:
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    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Tue Dec 13, 2011 9:05 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF 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 DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 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 Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


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