LISTC error



IBM's Command List programming language & Restructured Extended Executor

LISTC error

Postby migusd » Tue Dec 02, 2014 2:11 am

Hi guys,
I am trying to get all the files using listcat.
However, got a cc=8
reviewing the manual, all is say is "Processing was completed, but specific details were bypassed".

What does it mean?
What should I do?
here is my code:
20 *-* DSNSET = APPL'.*.'EXTFILE                 
   >>>   "EXTY.*.EXTFILE"                       
21 *-* X = OUTTRAP('VAR.')                       
   >>>   "VAR."                                 
22 *-* "LISTC ENT('"DSNSET"') NONVSAM"           
   >>>   "LISTC ENT('EXTY.*.EXTFILE') NONVSAM"   
   +++ RC(8) +++                                 
23 *-* Y = OUTTRAP('OFF')                       
   >>>   "OFF"                                   
24 *-* IF VAR.0 =  0                             
   >>>   "0"                                     
29 *-* IF LEFT(VAR.1,15) <> "NONVSAM -------"   
   >>>   "1"                                   


Thank you...
Miguel
migusd
 
Posts: 40
Joined: Tue Dec 01, 2009 9:26 pm
Has thanked: 6 times
Been thanked: 0 time

Re: LISTC error

 

Re: LISTC error

Postby steve-myers » Tue Dec 02, 2014 8:16 am

I think you will find 'EXTY.*.EXTFILE' is not a valid entry name. To confirm this, try this job -
//A       EXEC PGM=IDCAMS
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 LISTCAT ENT('EXTY.*.EXTFILE') NONVSAM
//


You can try this, though not all z/OS releases will accept it -
//A       EXEC PGM=IDCAMS
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 LISTCAT LEVEL('EXTY.*.EXTFILE') NONVSAM
//
The TSO LISTC command is the IDCAMS LISTCAT command.

These users thanked the author steve-myers for the post:
migusd (Tue Dec 02, 2014 8:58 pm)
steve-myers
Global moderator
 
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: LISTC error

Postby vern » Tue Dec 02, 2014 12:49 pm

Both LVL and ENT work for me on zOS 1.13. Not sure why it doesn't work for you
vern
 
Posts: 14
Joined: Fri Oct 24, 2014 12:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: LISTC error

Postby migusd » Tue Dec 02, 2014 8:57 pm

Thanks, Steve & Vern,
I hadn't notice, but I got a nasty IDC3037I STORAGE FOR NUMBER OF ENTRIES EXCEEDS 16M LIMIT...
...that became obvious when trying IDCAMS as suggested.

So, I switched to LISTCAT LEVEL and got the desired results. :)

Thanks

Miguel
migusd
 
Posts: 40
Joined: Tue Dec 01, 2009 9:26 pm
Has thanked: 6 times
Been thanked: 0 time

Re: LISTC error

Postby migusd » Tue Dec 02, 2014 11:11 pm

I guess I spoke to soon.
switch to listcat level with idcams and got the results I wanted.
however, when I attempted to execute it within rexx got the same cc=8.
This time no additional messages were found.

I should post this error on tso-rexx list.

thanks guys

Miguel
migusd
 
Posts: 40
Joined: Tue Dec 01, 2009 9:26 pm
Has thanked: 6 times
Been thanked: 0 time

Re: LISTC error

Postby vern » Wed Dec 03, 2014 1:10 pm

Miguel, it works for me in TSO as well.
5 *-* dsn = "SYS1.*.SASMMOD1"
  >>>   "SYS1.*.SASMMOD1"
6 *-* x = outtrap("VAR.")
  >>>   "VAR."
7 *-* "LISTC ENT('"dsn"')"
  >>>   "LISTC ENT('SYS1.*.SASMMOD1')"
8 *-* x = outtrap("OFF")
  >>>   "OFF"
9 *-* say VAR.0
  >>>   "6"

Have you tried with other DSN patterns ?
vern
 
Posts: 14
Joined: Fri Oct 24, 2014 12:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: LISTC error

Postby migusd » Wed Dec 03, 2014 9:56 pm

you're right, vern...
there is something weird with this, and I can't figure it out, yet..

I got cc=8 no matter the dsn I try.

thanks
migusd
 
Posts: 40
Joined: Tue Dec 01, 2009 9:26 pm
Has thanked: 6 times
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post