Repeated card types
Quick reference
For multicard records only, to define cards which may appear more than once in a record, type:
struct; rep=card_numbers
card_numbers is either a comma-separated list of card numbers, or a range of sequential card numbers in the form start:end or start/end.
More information
If the data contains trailer cards and the Levels facility is not used, you must list their card types with the keyword rep=. For example, if card 2 is a trailer card, write rep=2. Where there is more than one trailer card, each card type is listed separated by a comma. If cards 2, 3 and 4 are all trailer cards, write:
rep=2,3,4
If you have ranges for repeated card types, you can type the numbers of the lowest and highest cards separated by a slash (/) or a colon (:) rather than listing each card type separately.
For example, if cards 2 to 4 are all repeated, type:
rep=2,3,4
or
rep=2/4
or
rep=2:4
If rep= is not used and a record is read with two or more cards of the same type, the last card of that type is accepted and the message ‘Identical duplicate’ or ‘Non-identical duplicate’ and a note of the record’s position in the file is printed. For example:
Record structure error:
serial 026, card 234 in run, card 234 in dfile
card type 2 — non-identical duplicate
Because rep= refers to trailer cards only, it will be ignored if read=2 and crd= are not both present on the struct statement.
See also