VLM (View Load Module)

Purpose
List symbols in a load module.
Usage notes
Use this function to print a list of the symbols (CSECTs, common sections, entry points, and ZAPs) in a load module.
Options
The list can be sorted by symbol address (offset within module) or symbol name.
Related functions
None.
Read syntax diagramSkip visual syntax diagram
Syntax

        .-INPUT=DDIN-----------------------.   
>>-VLM--+----------------------------------+-------------------->
        +-INPUT=ddname---------------------+   
        '-DSNIN=dsname-+-----------------+-'   
                       '-VOLSERIN=volser-'     

>--+----------------------------------------+------------------->
   +-MEMSTART=startstring--MEMEND=endstring-+   
   '-MEMBER=member--------------------------'   

                                 .-SORTBY=ADDRESS-.   
>--+--------------------------+--+----------------+------------->
   |           .-,--------.   |  '-SORTBY=NAME----'   
   |           V          |   |                       
   '-MEMLIST=(---view_mem-+-)-'                       

   .-FUNCTION=LIST--.  .-DATEFORM=YYYYDDD-.   
>--+----------------+--+------------------+--------------------->
   '-FUNCTION=PRINT-'  '-DATEFORM=YYMMDD--'   

   .-DATEMASK='YYYY.DDD'---.  .-SUMMARY=NO--.  .-XLABEL=NO--.   
>--+-----------------------+--+-------------+--+------------+--->
   '-DATEMASK='mask_value'-'  '-SUMMARY=YES-'  '-XLABEL=YES-'   

   .-COPTION=NO--.  .-IDENTIFY=NO--.  .-TEXT=NO--.   
>--+-------------+--+--------------+--+----------+-------------->
   '-COPTION=YES-'  '-IDENTIFY=YES-'  '-TEXT=YES-'   

   .-ZAP=NO--.   
>--+---------+-------------------------------------------------><
   '-ZAP=YES-'   

INPUT=ddname
Refers to a DD or TSO ALLOC statement. The default is DDIN for input, and DDOUT for output.
DSNIN=dsname
Defines the name of the input data set. If any DD statements are specified, they are not used. The name may include a member name or pattern in parenthesis. If the member is specified here, the associated Member parameter must be empty. To further describe the data set, use the appropriate keywords as shown in the syntax diagram. You can further describe this data set using:
VOLSER=volser
Volume serial number for a non-cataloged data set.
MEMBER=member
The name of a single member or pattern in a PDS load module.
MEMSTART=startstring
Is used to specify the start of a range of member names to be included in the processing. If MEMSTART is specified but MEMEND is omitted, all members of the PDS(E) from the startstring value onwards are included. startstring can have the same values, including wild cards, as for the member parameter of the MEMBER keyword.
MEMEND=endstring
Is used to specify the end of a range of member names to be included in the processing. If MEMEND is specified but MEMSTART is omitted, all members of the PDS(E) up to the endstring value onwards are included. endstring can have the same values, including wild cards, as for the memold parameter of the MEMOLD keyword.
MEMLIST
Provides a means of selecting members from a load library where no generic name pattern and no member name range has been specified. If the MEMLIST keyword is specified, only those members included in the MEMLIST arguments are processed. Members selected by the MEMBER=member that are not included in the MEMLIST arguments are not processed.
view_mem
The name of the member to be processed. Generic name masks are not allowed.
FUNCTION
The command that you want to execute:
LIST
Display the list (the default)
PRINT
Print the list
SORTBY
Sorts the list or print output by one of the following:
ADDRESS
Sort by the address of the symbol
NAME
Sort by the name of the symbol
DATEFORM
Specifies Gregorian or Julian format of dates:
YYYYDDD
Dates shown in the YYYY.DDD format
YYMMDD
Dates shown in YY/MM/DD format
DATEMASK=mask_value
Where the mask value is specified as a string (maximum 19 bytes) that contains picture characters that are supported by the Language Environment® date callable services. If the mask contains blanks, enclose it in quotation marks. All dates in the report follow this format.
Examples.                                
Mask                 Result              
YY/MM/DD             16/04/20            
MM/DD/YYYY           04/20/2016          
DD/MM/YYYY           20/04/2016          
'Www Mmm DD, YYYY'   Wed Apr 20, 2016 
Note: If specified, DATEMASK takes precedence over DATEFORM. Use DATEMASK because DATEFORM only remains for compatibility with old JCL.
SUMMARY=NO
CSECT information is not suppressed.
SUMMARY=YES
CSECT information is suppressed.
XLABEL=NO
Section labels (type LD) are included in the report.
XLABEL=YES
Section labels (type LD) are excluded from the report.
COPTION=NO
Compile options are not shown in the report.
COPTION=YES
Compile options are shown in the report if they can be determined.
IDENTIFY=NO
User data from the IDENTIFY statement is not shown in the report.
IDENTIFY=YES
User data from the IDENTIFY statement is shown in the report.
TEXT=NO
Text data is not produced.
TEXT=YES
Text data is produced in dump format for each control section in the report.
ZAP=NO
ZAP data is not shown in the report.
ZAP=YES
ZAP data is shown in the report.
Note: The function parameter is ignored in batch mode.
//VLM JOB (acct),'name' View Load Module
//*
//HFMBAT    PROC
//HFMBAT    EXEC PGM=HFMMAIN
//STEPLIB  DD DSN=HFMUSER.FMN310.TSTLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//         PEND
//*
//HFMMAIN EXEC HFMBAT
//DDIN     DD DSN=HFMUSER.FMN310.TSTLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
$$FILEM VLM MEMBER=HFMMAIN
$$FILEM EOJ
/*