AS/400 >> library list command?

by Malak » Thu, 07 Aug 2008 04:22:17 GMT

I would like to list all the source files with their descriptions for
a library in one printout.
Is there a way to do this without hitting printscreen dozens of times?

IS400/V5R3

thanks

AS/400 >> library list command?

by gb » Thu, 07 Aug 2008 07:46:35 GMT



Assuming you have PDM, STRPDM, get the list of source members displayed,
press F21.

AS/400 >> library list command?

by Brian » Thu, 07 Aug 2008 07:50:45 GMT


Display file descriptions to a file, then query the file:

DSPFD FILE(PBSSRC/*ALL) TYPE(*ATR) OUTPUT(*OUTFILE) FILEATR(*PF)
OUTFILE(your-file-name)

SELECT PHFILE, PHTXT FROM your-file-name WHERE PHDTAT ='S'

Similar Threads

1. Custom Command - Dynamic List or Resticted List or Both - AS/400

2. CREATE PROCEDURE with Library List for external program?

I want to issue a CREATE PROCEDURE for an external (RPG/400) program. 
Instead of giving a fixed library, I want the system to search for the 
program in the library list of the job which later calls the procedure. 
However, it seems I cannot specify a library list. I tried
CREATE PROCEDURE ... EXTERNAL NAME *LIBL/myProg GENERAL
CREATE PROCEDURE ... EXTERNAL NAME "*LIBL"/myProg GENERAL
CREATE PROCEDURE ... EXTERNAL NAME '*LIBL'/myProg GENERAL
CREATE PROCEDURE ... EXTERNAL NAME myProg GENERAL

but either the CREATE PROCEDURE fails, or the command fails when I want 
to call the procedure later, saying that it can't find the Program myProg.

Does anyone have an idea how to accomplish this?

Thanks
Urs Eichmann

3. LIBRARY FILE LIST... - AS/400

4. Embedded java in RPG and library list

We have a RPGLE program that does an embedded java call. After control
returns to our program, we do some work on a file XXX by calling a CLLE
program from the same RPGLE program.

This works great interactive. Problem starts when running this program
in batch mode.

The java call is being made and control returns to our program. We call
the CLLE program, but then things go wrong. We get a message that file
XXX can not be found. The batch jobs goes into MSGW state.

When we examine the job at this point and take a look at the library
list (option 13 DSPJOB), the library that holds file XXX is in there.
Even more, the file XXX is in the list of locks (option 12 DSPJOB). So
why can't the CLLE find the file ?

When we take out the java call and then run the program in batch,
everything runs just fine.

So it looks like the java call is really messing things up. Seems like
the java environment is doing something in batch that really screws up
the job.

How can we find out what the problem might be ? Is there someone who
has experienced the same behaviours ? Can you think of a solution or
workaround ?

Thanks,
Mark

5. library list question - AS/400

6. How to get list of tables/libraries

7. DSPMSG / Library lists - AS/400

8. job submit and library list

Hi.

I'm trying to run a job from job scheduler on V5R4.
It's a simple CALL. I'm running it from a user with specific job
description, I also use that jobd as a JOBD parameter. I need this job
description to configure job library list (program I'm trying to call
is in library which isn't in default OS list).

I do the same thing on other system with V5R3.

On V5R4 job submits without library list set in my specific job
description and I get an error that program I'm trying to CALL can't
be found in *LIBL.


Can anybody tell me what I possibly do wrong ?


Tomasz