Retrieving All Fields In A Segment

The FOCUS command SEGMENT can be used to retrieve all fields in a segment by only  specifying one field - any field - in the segment.  This command is particularly useful if you are downloading many data elements.  For example, if you want to download all the fields from the active (personnal data) segment of the Active Current Status file, execute the following commands:

 

EX ac

table file ac

print segMENT ac:ssa

on table hold as permlrg format lotus

end

 

Note: The SEGMENT command will only retrieve UNDEFINED fields.  If you would like to print defined fields (indicated by an * in the master file description) you must specify the fieldname in the report request. For example:

 

EX ac

table file ac

print segMENT ac:ssa ac:ethnicgrp ac:DAO

on table hold as permlrg format lotus

end

 

For additional information on the SEGMENT command, refer to your FOCUS documentation, or call the CIRS Hotline for assistance.