SRS.UV.HEADER

Home Up

Home
FAQ
True Stories
Submissions
Price List
Downloads
Links
Search
Privacy Policy
Terms of Use

If you want to use the UniVerse Retrieve language with UniVerse BASIC object code, download our SRS.UV.HEADER program. With this program you can create I-Type descriptors that access the binary information in a UniVerse BASIC object code header. 

Here are the steps to make the SRS.UV.HEADER work for you.

  1. Download the SRS.UV.HEADER.
  2. Compile the program and catalog it.
  3. Create I-Type descriptor for source lines.
  4. List the object code.
  5. Add more I-Type descriptors. (Optional)

 

Download the SRS.UV.HEADER program from here.

Version 3.2; size is 20,804 bytes.

Our examples show the SRS.UV.HEADER residing in the file called BP, however, you can put the program any place you like. You will probably want to put it in the same place as your other utility programs.

Back to Top

Compile and catalog the SRS.UV.HEADER program . 

>BASIC BP SRS.UV.HEADER
Compiling: Source = 'BP/SRS.UV.HEADER', Object = 'BP.O/SRS.UV.HEADER'
***************************

Compilation Complete.
>CATALOG BP SRS.UV.HEADER
"*UV*SRS.UV.HEADER" cataloged.
>

Use the file name where you loaded the SRS.UV.HEADER program.

Back to Top

Create I-Type descriptor for source lines. 

Most want to know the number of source lines. Here is an I-Type descriptor that returns the number of source lines using the SRS.UV.HEADER program.

>ED DICT BP.O LINES
New record.

----: I
0001= I
0002= SUBR("SRS.UV.HEADER", @RECORD,
18 )
0003=
0004=
0005= 10R
0006= S
0007=
Bottom at line 6.
----: fi
This Type "I" Descriptor must be compiled before use.
"LINES" filed in file "DICT BP.O".
>
Back to Top

List the object code file.

>LIST BP.O LINES "SRS.UV.HEADER"

LIST BP.O LINES "SRS.UV.HEADER" PAGE 1
BP.O.......................... LINES.....

SRS.UV.HEADER                         565

1 records listed.
>

Congratulations! You have completed the necessary steps. Go on to the next step if you want to discover some other useful information in the UniVerse BASIC header.

Back to Top

Add more I-Type descriptors.

Here are some fields that others have found useful:

Field 6 tells how may arguments are passed to the program. This aids identifying subroutines versus programs.

Field 7 tells you how many unnamed common member variables are used by the program. This helps finding those programs that make use of the unnamed common storage area.

Field 8 tells you how many named common storage areas are used by the program. This lets you know if there are any named common storage areas used by a program.

Field 34 tells whether VLIST is disabled for a program. You won't be able to use VLIST for those programs that return 1.

Field 40 returns a multi-valued list of of the common storage area names used by the program. 

Field 41 returns the full pathname to where the original source program resided.

If you are interested in seeing what other data are available to you, read through the source code for SRS.UV.HEADER. There are 36 header fields that the SRS.UV.HEADER program can return to you plus 2 virtual fields that dig into the object code to return some other interesting information. Create any additional I-Type descriptors that you find useful. You can use the LINES I-Type descriptor as a prototype. Just change the 18 to whatever value you want to report.

Back to Top
Hit Counter  

Privacy Policy Terms of Use
The Source Recovery Service, Source Recovery Service for UV, SRS4UV and SRS are trademarks of srs4uv.com, inc. 
All other products mentioned are registered trademarks or trademarks of their respective companies.

Questions or problems regarding this web site should be directed to info@srs4uv.com.
Copyright © 2002-2005 srs4uv.com, inc. All rights reserved.