Example of transaction set control number by date

For example, a map may concatenate a sequence number with other information such as the current date:

  • Input card 1 represents the most recently used control number (LastUsedControl Number)
  • Output card 1 contains a rule with the CURRENTDATE function. In this example, the first six characters of the control number are the current date in YYMMDD format. The last three characters represent the sequence number of the current data set. If the date from the most recently used control number is the same date as the current date, the sequence number is incremented by one. If the date is not the same as the current date, the sequence number is reset to The map rule is:
    
    =IF Shift 9 =( RENTDATE() = YYMMDD:LastUsedControlNumber , 
    SeqNum:LastUsedControlNumber +1 , 1 )