× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Adrienne,

Take a look at:
http://search400.techtarget.com/tip/0,289483,sid3_gci1132400,00.html
http://search400.techtarget.com/tip/0,289483,sid3_gci1136993,00.html

The program discussed there uses the Qp0lGetAttr API to retrieve the
attributes of a file. The program is written in C, but you could translate
the necessary code to COBOL, or create a subroutine in C that could be
called by your COBOL program.

More details on that API can be found at
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/
qgetattr.htm

There are also APIs that let you read the contents of an IFS file.

Good luck!

Richard





-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx]On Behalf Of Adrienne McConnon
Sent: Tuesday, April 17, 2007 10:12 AM
To: cobol400-l@xxxxxxxxxxxx
Subject: [COBOL400-L] COBOL - list stream files/list library files/no spool


Hello,

We have a problem that is occurring in our 'sleeper' process.
Basically, this program runs continuously, checking for the existance of
files within the COBOL program. It is currently calling a CL that does
a DSPLNK to check for the existence of a stream file or a library file.
Depending on what it finds, it proceeds to process - whatever. The
problem is that, apparently, there is a limit as to the number of spool
files that gets created from a job. AZnd even though this process is
cleaning up the spool files, as needed, it still aborts at a certain
point.

Option 1 - Ideally, we would like to not create a spoolfile at all, but
list the results of the DSPLNK to a flat file. As far as we know, the
results must go to spool or screen, which is not an option either, since
there is no support staff to moniter screen results. If anyone knows
how to direct DSPLNK command results to a flat file and suppress the
create spool file option when calling this from a COBOL program, that
would be great!!!!

Option 2 - maybe we have not researched methods of displaying both
library and stream files from within a COBOL program - does anyone have
any suggestions here? Of course, creating a spool file needs to be
suppressed or eventually the limit will occur.

Option 3 - We are considering teaching the program to turn itself on and
off - our mastermind is currently researching this option, but this may
be a roundabout way to resolve this issue - I'd like to learn how to
best resolve the spoolfile creation issue or list file to flat file
issue.

Any comments or suggestions would be appreciated -

Have a great day!

Adrienne McConnon

Vercuity - Parsippany - NJ
--

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.4.0/762 - Release Date: 4/15/2007
4:22 PM



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.