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

REXX LMDLIST fails with RC 8 after z/os1.7 upgrade


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

New User


Joined: 16 Dec 2009
Posts: 5
Location: South Africa

PostPosted: Wed Dec 16, 2009 3:50 pm
Reply with quote

Good day.

I need some assistance regarding a REXX LMDLIST issue that we started to experience after upgrading from z/OS 1.4 to z/OS1.7.

After the upgrade, LMDLIST with 'option(save)' failes with rc 8 when allocating the output dataset. The LMDLIST REXX looks as follows:
/* REXX * LMF-BEFEHLE FUER SEQUENTIELLE DATEIEN ********************/
TRACE ?R
L = 'ZA06417.**'
G = 'OOOOOO'
D = ' '
/*"CONTROL ERRORS RETURN" */
ADDRESS ISPEXEC
"LMDINIT LISTID(IN) LEVEL("L")"
SAY 'RC1: ' RC

ADDRESS ISPEXEC
"LMDLIST LISTID("IN") OPTION(SAVE) DATASET(D) STATS(YES) GROUP("G")"
SAY 'RC2: ' RC

ADDRESS ISPEXEC
"LMDFREE LISTID("IN")"
EXIT

The REXX works as normal on one of the other z/os1.7 lpar, so I am suspecting that it might be due to either a usermod or exit that is missing. It also works when a pre-allocated dataset is specified for the 'option(save)', which makes me believe that the allocation of the output dataset is causing the rc 8.

Can someone please assist and advise.

Thanks for your help and assistance in advance.

Regards

Jaco
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Dec 16, 2009 3:59 pm
Reply with quote

what message(s) does the SAVE command in DSLIST show?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Dec 16, 2009 4:27 pm
Reply with quote

Change "SAY 'RC2: ' RC " to "SAY ZERRSM ; SAY ZERRLM" to see the exact message, or use dialog trace options.

O.
Back to top
View user's profile Send private message
Jaco

New User


Joined: 16 Dec 2009
Posts: 5
Location: South Africa

PostPosted: Wed Dec 16, 2009 4:55 pm
Reply with quote

Thank you for the quick response.

I am getting the following error message:

13 *-* SAY ZERRSM
>>> "Data set not cataloged "
Data set not cataloged
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Dec 16, 2009 4:57 pm
Reply with quote

I guess it's something with your PREFIX. Try to turn it on/off.

O.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 16, 2009 5:15 pm
Reply with quote

No dot between the *?

L = 'ZA06417.**'

dsname-level
You may use this value to specify the level or levels of data sets displayed with
the dslist ID. The dsname-level is a string containing valid TSO data set name
qualifier patterns, separated by periods (‘.’). You can use an asterisk as a
wildcard in the qualifiers. The LMDINIT service does not select data sets with
fewer levels than the dsname-level. You may also use an optional data set list
exit to control which data sets are included in the list.
Back to top
View user's profile Send private message
Jaco

New User


Joined: 16 Dec 2009
Posts: 5
Location: South Africa

PostPosted: Wed Dec 16, 2009 5:33 pm
Reply with quote

Turned the prefix on and off, but still the same error. I also found that if I am writing output to pre-allocated dataset, it works. So the problem seems to be related to the allocation bit of the dataset for the output.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 16, 2009 5:44 pm
Reply with quote

Turned the prefix on/off?
Did you code the dots between the * ?
Did you use a fully qualified name ?

With the little info you are handing out
resolving this will be a little hard.

You as MVS Systems Programmer should
know that.
Back to top
View user's profile Send private message
Jaco

New User


Joined: 16 Dec 2009
Posts: 5
Location: South Africa

PostPosted: Wed Dec 16, 2009 6:14 pm
Reply with quote

Turned prefix on - rc 8.
Turned prefix off - rc 8.
Used fully qualified name - rc 8.

Same REXX works on another z/os1.7 lpar. I am looking to see how the datasets gets allocated in ISPF.

Unfortunately I have no more details.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Dec 16, 2009 6:59 pm
Reply with quote

Jaco wrote:
Thank you for the quick response.
I am getting the following error message:
13 *-* SAY ZERRSM
>>> "Data set not cataloged "
Data set not cataloged

Two things,
(1) Is there a catalog entry existing for the dataset
(2) Is there an uncataloged version lying around somewhere
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Dec 16, 2009 8:28 pm
Reply with quote

Can you allocate a dataset manually?

Does your userid have a prefix defined?

What is ZERRLM say? Issue MSGID ON prior to running.
Back to top
View user's profile Send private message
Jaco

New User


Joined: 16 Dec 2009
Posts: 5
Location: South Africa

PostPosted: Wed Dec 16, 2009 8:56 pm
Reply with quote

There does not seem to be an entry available on the system, as three different users have tried to do the list, but had the same issue.

The ZERRLM looks as follows:

11 *-* ADDRESS ISPEXEC

12 *-* "LMDLIST LISTID("IN") OPTION(SAVE) DATASET(D) STATS(YES) GROUP("G")"
>>> "LMDLIST LISTID(ISR00002) OPTION(SAVE) DATASET(D) STATS(YES) GROUP
(OOOOOO)"
+++ RC(8) +++

13 *-* SAY ZERRSM
>>> "Data set not cataloged "
Data set not cataloged

*-* SAY ZERRLM
>>> "'ZA06417.OOOOOO.DATASETS' was not found in catalog.





"
'ZA06417.OOOOOO.DATASETS' was not found in catalog.

I am suspecting that the problem is related to something to do with ISPF, but I hav done an ALLOC of a dataset using REXX and that worked without any issues.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 16, 2009 8:57 pm
Reply with quote

Wild thought -- could there have been a missed user catalog in the conversion? If you're trying to allocate a new file that should be in a user catalog, and that user catalog wasn't set up properly as part of the conversion, you could be attempting to write directly to the master catalog. This usually fails since the user catalogs are supposed to be used.

This would be a question for your site support group. There should be a security package message in the console messages indicating the problem if that is the source of your error.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Thu Dec 17, 2009 7:32 am
Reply with quote

also the wild thought crossed my mind that maybe there are some ISPF exits or ACS routine that are not working. There are exits that change names, usually used to add qualifiers with the lpar name or similar and I'm wondering of the data set is being created under a slightly different name.
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 Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top