Pascal_Osthus-bugat_1753

Listing Objects in AS 400 library with PREP_PROCESS_FILENAME call

Discussion created by Pascal_Osthus-bugat_1753 on Sep 30, 2016
Latest reply on Mar 21, 2017 by Josef_Scharl_103
The PREP_PROCESS_FILENAME can  be applied to a AS400 agent to retrieve the content of AS400 library.


In this example a V7R2 System gets interogated on the content of the installation library of V11.2 AS400 Agent. The script is executed by a SCRIPT objects:

=================================================================================
:SET &HND# = PREP_PROCESS_FILENAME("AS4001","UC4V11/*","Y",,,,"UC_LOGIN=LOGIN.POB.1")
:PROCESS &HND#
:   SET &LINE# = GET_PROCESS_LINE(&HND#)
:   PRINT &LINE#
:ENDPROCESS
=================================================================================

The execution of this SCRIPT object will provide the following content in its output.

===============================================================================
2016-09-29 17:22:44 - U00010039 'UC4V11/ENDUCAGENT'
2016-09-29 17:22:44 - U00010039 'UC4V11/IRSTRJOB'
2016-09-29 17:22:44 - U00010039 'UC4V11/MAKEMSL'
2016-09-29 17:22:44 - U00010039 'UC4V11/REMOTEIO'
2016-09-29 17:22:44 - U00010039 'UC4V11/STRUCAGENT'
2016-09-29 17:22:44 - U00010039 'UC4V11/UCEX_END'
2016-09-29 17:22:44 - U00010039 'UC4V11/UCEX_RUN'
2016-09-29 17:22:44 - U00010039 'UC4V11/UCXBO41C'
2016-09-29 17:22:44 - U00010039 'UC4V11/UCXJO41'
2016-09-29 17:22:44 - U00010039 'UC4V11/UCXJO41M'
2016-09-29 17:22:44 - U00010039 'UC4V11/COMPRESS'
2016-09-29 17:22:44 - U00010039 'UC4V11/GSS'
2016-09-29 17:22:44 - U00010039 'UC4V11/LIBCPPRNT'
2016-09-29 17:22:44 - U00010039 'UC4V11/DQ'
2016-09-29 17:22:44 - U00010039 'UC4V11/CLLE'
2016-09-29 17:22:44 - U00010039 'UC4V11/INI'
2016-09-29 17:22:44 - U00010039 'UC4V11/MSL'
2016-09-29 17:22:44 - U00010039 'UC4V11/TMP'
2016-09-29 17:22:44 - U00010039 'UC4V11/ENDUCAGENT'
2016-09-29 17:22:44 - U00010039 'UC4V11/GENUCMSL'
2016-09-29 17:22:44 - U00010039 'UC4V11/STRUCAGENT'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4IF'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4IG'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4IH'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4JC'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4JG'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4JH'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4JI'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4JJ'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4J8'
2016-09-29 17:22:44 - U00010039 'UC4V11/FT3C4K0'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4IF'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4IG'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4IH'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JC'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JE'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JF'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JG'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JH'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JI'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JJ'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JK'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JM'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JN'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4JO'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4J8'
2016-09-29 17:22:44 - U00010039 'UC4V11/O3C4K0'
===============================================================================

This is exactly what the output of the STRPDM ==> option 2 will provide


mux32r9dmhhb.png





Outcomes