Determining the number of lines in a VLS Source library
search cancel

Determining the number of lines in a VLS Source library

book

Article ID: 25891

calendar_today

Updated On:

Products

Ideal IPC

Issue/Introduction

Is there a utility that counts the number of lines in a VLS source library?

Environment

Release: 15.1
Component: IDEAL

Resolution

To find the number of lines in a VLS Source file, you will need to run the VLSUTIL program with a DDname VLSFILE referring to the VLS source file, and the SYSIN command " LIBRARY" (starting in column 2).

Then, to find the line counts for one or more members, refer to the lines with "###L" in columns 20-23. The "L" members are the actual source members. You will need to review the column with the header RCDS (meaning records, or lines) to get the totals you need. You can add these manually or use a program to "read" the LIBRARY listing report.

NOTE: The format of all Datacom reports is subject to change at any time without notice, so any utility that reads a report file may need changes in the future to address report layout changes.

Please see the attached file (VLS#SUM.txt) for a sample proc with DFSORT that can be used to produce a summary report of the number of members and a total count of source lines, for each Ideal System. Using this proc involves adding the IPC loadlib (usually ending with CAVQLOAD) to the proc symbol VLSSTEP, and then calling the proc with the symbol VLSFL set to the VLS Source file name:

//VLS01   EXEC PROC=VLS#SUM,VLSFL=Your.VLS.SOURCE.FILE

The output is self-explanatory:

2023.03.29                 IDEAL VLS Member Summary    
10:27:13            For VLS file: Your.VLS.SOURCE.FILE
                                                       
                   Ideal    Member            Total    
                    SYS      Count            Lines    
                    ---  ---------  ---------------    
                    $ID         52            1,820    
                    COL         12               90    
                    SAM          1               57    
                    WWW          2              218    
                                                       
                   TOTAL        67            2,185    

Further explanation on usage is given within the proc.

Please contact Broadcom support for Datacom if you have further questions.

Additional Information

See also "VLS Utility (VLSUTIL)" section of Datacom Tools documentation

Attachments

1680805780867__VLS#SUM.txt get_app