FACDEC: Convert Task Factors to Download Decks

Last updated 18 Nov 97

FACDEC provides the most efficient method for formatting data into card image files, which when downloaded can be immediately input into the BTS system. While BTS currently requires only PMP and PTS factors, FACDEC generically accepts any factor specified.

Program Invocation

The specific syntax for program invocation varies between operating systems. This document diplays the code for the AIX version.


@codap facdec <opt> <ssss> <itf> <ci>

opt:   Z  Do not print tasks with PMP=0
ssss:     The study number 
itf:      Input Task Factor file
ci:       Output card image file

Factor Request Cards


<factor> <type>

factor:   cc 01-06  The factor name
type:     cc 08-10  The factor type.  Default = PMP and PTS. If either PMP
                    or PTS is specified, both are extracted. If RMN is
                    specified, both RMN and RSD are extracted. If SMN is
                    specified, both SMN and SSD are extracted.

A maximum of 100 factor request cards can be specified. These cards are terminated by an end-of-file or an '@eof' image.

Output Format

The first record of the output card image file displays the number of factor sets (NFAC) extracted and the number of tasks (NTASK) in (I5,I5) format. This is followed by NFAC sets of (NTASK+1) records. The first record in each set displays the factor name and type (for PMP/PTS, only PMP is displayed; similarly, RMN and SMN are displayed for the RMN/RSD and SMN/SSD sets respectively), the number of members in the group, and the group title in (A6,'/',A3,I5,1X,A60) format. The next NTASK records display the task number and factor value(s) in (I4,2F10.2) format for two-factor sets and (I4,F10.2) format for single factor sets. If the 'Z' option is used for PMP/PTS factors, only those tasks with non-zero values are written.

Example

@codap facdec z ssss tf100 bts.txt
GP0071
GP0093
ST0144
GP0007
@eof

This example will extract the PMP and PTS factors for each specified group and write the data to card image file 'bts.txt'. This file can then be downloaded and used as input to the BTS micro-computer system.

Back to document index