PRS(1)
NAME
prs − print an SCCS file
USAGE
prs [ −d[ dataspec ]] [ −r [ SID ]] [−e] [−l] [ −c [ date-time ]] [−a] files
DESCRIPTION
Prs prints, on the standard output, parts or all of an SCCS file in a user-supplied format. If a directory is named, prs behaves as though each file in the directory is specified as a named file, except that it silently ignores non-SCCS and unreadable files. If a dash (−) is given in place of a filename, prs reads the standard input, taking each line to be the name of an SCCS file or directory to be processed.
Options to prs may appear in any order. Each argument applies independently to each named file.
OPTIONS
−d[dataspec] Specify the output data specification. The dataspec is a string consisting of SCCS file data keywords interspersed with optional user-supplied text.
−r[SID] Specify the CCS Identification (SID) string of the delta for which information is desired. If you do not specify an SID, then prs assumes the SID to be that of the most recently created delta.
−e Request information for all deltas created earlier than and including the delta designated via the −r keyletter or the date given by the −c option.
−l Request information for all deltas created later than and including the delta designated via the −r keyletter or the date given by the −c option.
−c[date-time] Specify date-time as cutoff for requesting information. This cutoff date-time appears in the following form:
YY[MM[DD[HH[MM[SS]]]]] Units omitted from the date-time default to their maximum possible values; that is, −c8502 is equivalent to −c850228235959. Any number of non-numeric characters may separate the various two-digit pieces of the cutoff date in the following form: −c85/2/2 9:22:25.
−a Request printing of information for both removed (delta type = R) and existing (delta type = D) deltas. Refer to rmdel (1) for more information. If you do not specify the −a keyletter, prs only provides information on existing deltas.
DATA KEYWORDS
Data keywords specify those parts of an SCCS file to be retrieved and output. All parts of an SCCS file have an associated data keyword. Refer to sccsfile (4) for more information about the structure of these file types. There is no limit on the number of times a data keyword may appear in a dataspec.
Prs prints the user-supplied text, and appropriate values (extracted from the SCCS file) substituted for the recognized data keywords in the order of appearance in the dataspec. The format of a data keyword value is either Simple (S), in which keyword substitution is direct, or Multi-line (M), in which keyword substitution is followed by a carriage return.
User-supplied text is any text other than recognized data keywords.
A tab is specified by \t, and a carriage return/newline is specified by \n. The default data keywords are:
“:Dt:\t:DL:\nMRs:\n:MR:COMMENTS:\n:C:”
Delta line statistics
Lines inserted by Delta
Lines deleted by Delta
Lines unchanged by Delta
SCCS ID string (SID)
Date Delta created
Year Delta created
Month Delta created
Day Delta created
Time Delta created
Hour Delta created
Minutes Delta created
Seconds Delta created
Programmer who created Delta
Delta sequence number
Predecessor Delta seq-no.
Seq-no. of deltas incl., excl., ignored
TABLE 1 - SCCS Files Data Keywords
KeywordData ItemFile SectionValueFormat
:Dt:Delta informationDelta TableSee below*S
:DL:":Li:/:Ld:/:Lu:S
:Li:"nnnnnS
:Ld:"nnnnnS
:Lu:"nnnnnS
:DT:Delta type"D or RS
:I:":R:.:L:.:B:.:S:S
:R:Release number"nnnnS
:L:Level number"nnnnS
:B:Branch number"nnnnS
:S:Sequence number"nnnnS
:D:":Dy:/:Dm:/:Dd:S
:Dy:"nnS
:Dm:"nnS
:Dd:"nnS
:T:":Th:::Tm:::Ts:S
:Th:"nnS
:Tm:"nnS
:Ts:"nnS
:P:"lognameS
:DS:"nnnnS
:DP:"nnnnS
:DI:":Dn:/:Dx:/:Dg:S
:Dn:Deltas included (seq #)":DS: :DS:...S
:Dx:Deltas excluded (seq #)":DS: :DS:...S
:Dg:Deltas ignored (seq #)":DS: :DS:...S
:MR:MR numbers for delta"textM
:C:Comments for delta"textM
MR validation flag
MR validation pgm name
Keyword error/warning flag
File descriptive text
A form of what(1) string
A form of what(1) string
what(1) string delimiter
TABLE 1 - SCCS Files Data Keywords (continued)
KeywordData ItemFile SectionValueFormat
:UN:User namesUser NamestextM
:FL:Flag listFlagstextM
:Y:Module type flag"textS
:MF:"yes or noS
:MP:"textS
:KF:"yes or noS
:KV:Keyword validation string"textS
:BF:Branch flag"yes or noS
:J:Joint edit flag"yes or noS
:LK:Locked releases":R:...S
:Q:User defined keyword"textS
:M:Module name"textS
:FB:Floor boundary":R:S
:CB:Ceiling boundary":R:S
:Ds:Default SID":I:S
:ND:Null delta flag"yes or noS
:FD:CommentstextM
:BD:BodyBodytextM
:GB:Gotten body"textM
:W:N/A:Z::M:\t:I:S
:A:N/A:Z::Y: :M: :I::Z:S
:Z:N/A@(#)S
:F:SCCS filenameN/AtextS
:PN:SCCS file pathnameN/AtextS
* :Dt: = :DT: :I: :D: :T: :P: :DS: :DP:
EXAMPLES
Using the following command,
prs −d“Users and/or user IDs for :F: are:0UN:” s.file
may produce these results on the standard output:
Users and/or user IDs for s.file are: xyz 131 abc
Furthermore, if you type this command line:
prs −d“Newest delta for pgm :M:: :I: Created :D: By :P:” −r s.file
the following may appear on the standard output:
Newest delta for pgm main.c: 3.7 Created 85/12/1 By cas
A simple command line without options, such as prs s.file, may produce the following on the standard output:
D 1.1 85/12/1 00:00:00 cas 1 000000/00000/00000
MRs:
bl78-12345
bl79-54321
COMMENTS:
this is the comment line for s.file initial delta
for each delta table entry of the “D” type.
FILES
/tmp/pr?????
DIAGNOSTICS
Use help (1) for explanations.