Generate listing of source code

620 pts.
Tags:
Java
Source code
Source code management
Is there a way to generate a listing of all source code in a library other than taking option 6 next to each program? One of our managers wants a listing to see what programs are using JAVA. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    What type of system and OS are these program located on? The retrieval methods vary.
    107,945 pointsBadges:
    report
  • ToddN2000
    One example is if on an iSeries, go into PDM. Put a 25 next to the first source member then F13 and press enter. Enter you search ex. JAVA then set OPTION to *NONE > PRINT LIST to Y. You can also select PRINT RECORDS to Y if you want to see the source code line containing your search value.
    107,945 pointsBadges:
    report
  • TheRealRaven
    A minor mod to ToddN2000's suggestion is to put option 25 against the source file itself rather than against each member. The F13 can then be skipped.
    26,590 pointsBadges:
    report
  • Subhendu Sen
    While PDM may be started by using this command like, STRPDM which can produce menu of options like libraries/objects or members. As you mentioned, you can try WRKLIBPDM which works with libraries using PDM.
    112,090 pointsBadges:
    report
  • TheRealRaven
    Another way to use the PDM for this is the FNDSTRPDM command. This command can be run directly from a command line to search for strings in source file members. It can also be used in a compiled CL program.

    FNDSTRPDM doesn't allow a generic file name nor a special value such as '*ALL'. To search multiple source files or across libraries, you'll need to create a list of file names. The list would then be processed in a loop passing file names one at a time to the command.
    26,590 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: