The sample request below gathers payment information from the Payment History Data (PH) file for a group of SSN's held in your PERMSML file using the Match command. If you'd like to copy the request and modify it for your use, it's available in the CIRS common library as FOC3200.
Note: The example below presumes your PERMSML file was populated with SSN's by executing a report request that holds data to the file. If you'd like to populate your PERMSML file by uploading SSN's from your PC, contact the CIRS Hotline for instructions.
The first part of the request executes the standard defines for the PH file and begins the match request by summing gross pay for each SSN, for a specific pay period and your campus code.
MATCH FILE PH
IF PH:PAYPERIOD eq __
IF PH:CAMPX EQ __
The second part of the match compares the SSN's held in your PERMSML file to the PH data using the match option NEW, and holds the matched data to your PERMRPT file. The fieldname E01 is the alias for the data held in PERMSML. Note that E01 was renamed to PH:SSA so FOCUS will recognize that field as the same sort field used for the PH data.
by e01 as 'ph:ssa'
after match hold as permrpt
The final part of the report request generates the output from the matched data held in PERMRPT.
table file permrpt
For complete information on matching files, refer to your FOCUS documentation. Alternately, you can refer to the training module titled 'Holding & Matching Data' from the Advanced Reporting Agenda.
Last Updated: March 2, 2004