HP3000-L Archives

September 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Leonard S. Berkowitz" <[log in to unmask]>
Reply To:
Date:
Fri, 22 Sep 2000 09:56:59 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (76 lines)
I assume you are looking for a set of files, the names of which are not
predictable.

I suggest you execute a LISTF on the same fileset, perhaps directing the output
to $NULL if you do not want to see the listing.

 :ERRCLEAR          <To set certain predefined variables, including CIERROR,  to
default>
:LISTF fileset>$NULL
:IF CIERROR <> 431 THEN
:    LISTF fileset >*MyMsg
:ELSE
:               do something if no files exist
:ENDIF
===================
Leonard S. Berkowitz
Perot Health Care Systems
(Harvard Pilgrim Health Care account)
voice: 617-509-1212
fax:   617-509-3737
pager: 781-226-2431








Ric Merz <[log in to unmask]> on 09/22/2000 02:39:42 AM

Please respond to Ric Merz <[log in to unmask]>








 To:      [log in to unmask]

 cc:      (bcc: Leonard Berkowitz/CORP/HPHC)



 Subject: [HP3000-L] LISTFILE ,6 Question








To All,

I am looking for a "clean" solution to the following problem.  It must be in
MPE/iX JCL.  Please, no 3rd party software solutions.

I am using ListFile ,6 >*MyMsg to create a list of files to process.  This works
great, except when there aren't any files in the target directory that match my
selection.  Then I get two records in my msg file telling me the ListFile
command and the fact that there aren't any files found.  This is a pain to test
for (using cierror 920).

Is there a ListFile option that will only display the file names selected, and
provide an empty file when none of the files matches the selection?  This would
make scripting much easier.  (Don't you just hate it when commands do things
other than what the documentation says they do!!!!!?)

Thanks for any help.

Ric
[log in to unmask]

ATOM RSS1 RSS2