Printing problems--Archiving reports by date
Screenshots in this article are from RPM 7.0.
We have encountered customers in the financial services industry who want to archive their print jobs by date using our print server RPM Remote Print Manager® (RPM). One pattern we’ve run into is where they may receive a random number of text reports throughout the day. These reports will need to be appended into one file with the current date in the name. And, of course, the setup needs to work “hands-free,” so there is no daily set of steps to get this result. It has to be automatic and fool-proof.
Using the RPM archive function
RPM has a variety of outputs that we refer to as “actions” including printing to a printer, archiving to disk, running a program or generating an email, to name a few.
Let’s take a look at the setup for this operation.
- First, create a queue. In the user interface go to Queue / Create and enter a name. In this example, I used “date.”
- Add an Archive to Folder action. In this example, I selected an output folder, then clicked Customize beside Template (Mask) to open Modify Template.

These steps will get you to the display shown above:
- Click the Variables list, which starts out showing
<Q> - Queue - Scroll down to the Received Time group
Now we are ready to build a filename template. RPM will use this template to create a filename each time it runs this archive action.
How to use the current date
The template is a text field. First, delete the current contents of that field.
Next, open the Variables list, scroll to the Received Time group, and select <rY> - 4 digit year. Now that Y2K is no longer an issue you can use the two-digit year if you like, but I still prefer the four-digit year because it sorts predictably.
Click the Insert button.
Now repeat with <r#> - 2 digit month and Insert, then <rD> - 2 digit day and Insert.
Your template field should now look like this: <rY><r#><rD>

The Template (Mask) field shows the text above. Below it, the Example line shows “20250115”: the template applied to a sample date, January 15, 2025. RPM uses each job’s own received time when it runs. We’re only using the date in this example.
How to customize the filename
You can customize the filename by just adding text to the template. Let’s say for instance you wanted to separate the date fields with a dash and attach the file extension “.txt.”
Let’s start with our current example <rY><r#><rD> and add a dash between the angle bracket characters “>” and “<” being careful not to change the text between the angle brackets.
We should have this: <rY>-<r#>-<rD>
Now add the extension, and we have this: <rY>-<r#>-<rD>.txt
The example field updates as we change the template. Now it reads: “2025-01-15.txt”
One note of warning: you have to be careful about changing the tags. RPM will look for <rY> and change that to the 4-digit year. If you alter <rY> this will no longer work. The lesson is to look at the example field to verify you are doing what you mean.
How to append to an existing file
Back in the Archive to Folder dialog, look at the File Creation group:

I’ve selected Append to existing. However, you’ll notice when you do this the user interface does not prompt you for a file name. The reason is that RPM calculates the filename using the folder in the Location field, and the filename using the job information plus the template.
- If that file exists, then RPM appends the new job data to that existing file
- If the file doesn’t exist, then RPM creates it and writes the job data to it
Conclusion
Hopefully, the steps above make clear that RPM can nimbly calculate filename using data related to your print jobs, park them in any folder you choose, and append all day long. The fact that RPM does this without supervision makes it appealing for many uses.
If you have any questions or would like to see more topics like this, please leave a comment! Thank you.
