DMOLSTAPI DEMO LIST API PROCESSING TAARPHI |
The Demo List API Processing tool provides sample RPG code for
processing the information from an API that provides a list in a user
space. A working program exists with instructions within the source
code for how to modify for your specific case.
The sample program can be executed by the command:
DMOLSTAPI
This outputs a spooled file with one print line per format that
exists in the TAAARCAD display file in TAATOOL. The program uses the
QUSLRCD API which provides a list of the formats that are found in a
file.
The DMOLSTAPI command is for demonstration purposes only.
Using the tool
--------------
Extract the source from the TAA Archive to the QATTRPG file in the
TAATOOL library. Member TAARPHIR has an RPG III version. Member
TAARPHIR2 has an RPG IV version.
A sample command would be:
CPYTAA TAAARCMBR(TAARPHIR)
Copy the source to your RPG source member and and scan for '+Req'.
Follow the instructions.
When you have a working program and wish to remove the RPG comments
marked as +++, enter:
RMVSRCCMT MBR(xxx) SRCFILE(QRPGSRC)
Command parameters
------------------ *CMD
None.
Restrictions
------------
The list must fit within the maximum user space size of 16MB.
Prerequisites
-------------
The following TAA Tools must be on your system:
SNDESCMSG Send escape message
TAAEXC TAA Execute
Implementation
--------------
The source is only a sample. It must be copied to your source member
and modified.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
TAARPHI *CMD TAARPHI QATTCMD
TAARPHIR *PGM RPG TAARPHIR QATTRPG
TAARPHIR2 QATTRPG
|
Added to TAA Productivity tools August 1, 1998