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
 
REXX LMDLIST fails with RC 8 after z/os1.7 upgrade

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: REXX LMDLIST fails with RC 8 after z/os1.7 upgrade
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: 401
Location: Mumbai

PostPosted: Wed Dec 16, 2009 3:59 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Dec 16, 2009 4:27 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Dec 16, 2009 4:57 pm    Post subject:
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 16, 2009 5:15 pm    Post subject:
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    Post subject:
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 16, 2009 5:44 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 16, 2009 6:59 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 16, 2009 8:28 pm    Post subject: Reply to: REXX LMDLIST fails with RC 8 after z/os1.7 upgrade
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    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Dec 16, 2009 8:57 pm    Post subject:
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: 401
Location: Mumbai

PostPosted: Thu Dec 17, 2009 7:32 am    Post subject:
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    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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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