× 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.

Actually, any HLL (including RPGIV) can be called recursively provide that
you use ACTGRP(*NEW) when binding the *MODULE into a *PGM.

-Bob Cozzi

-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] On
Behalf Of Rich Hart
Sent: Friday, December 10, 2004 9:14 PM
To: MI Programming on the AS400 / iSeries
Subject: [MI400] RE: Trying to call QSPDSPFM


RE your question:  "We are writing a clone restricted version of the WRKSPLF
command and want to
duplicate the option '7' feature (Display spooled file messages)..."

Not sure why you want to call an (evidently, undocumented) API/system
program just to duplicate some of the functionality of the WrkSplF command
(or enhance same).  One idea about message handling would be to capture
message information from the job associated with the spool file against
which option 7 is requested, and then display that message information.  I
would think that would give you similar functionality to that provided by
the QSPDSPFM system program, although I don't have an AS/400 handy, just
now, to test it.  

A neat way to provide a WrkSplf "look-alike" (not necessarily "clone") is to
use the UIM.  The User Interface Manager makes it easy to provide IBM-like
"work with" tools, and it is very easy to add list options to user written
tools with UIM.

And (what is more relevant to this list), wouldn't it be cool to implement
the non-display logic of a WrkSplF "clone" with MI?  that way, you could run
it recursively, which you can't do with RPG.  And, it would run very, very
fast.  Wouldn't be hard to call the various API's related to the User
Interface Manger set-up with MI code.  Fun project.  

I'm sure you know that there are several spool file retrieval API's
documented in the System API manuals, such as QUsrSplA, which should give
you about everything you might need.  Hope this helps.

Rich Hart
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.