Attached datamapper file was created in the latest v2018.1.6. So you need to be in this version to open the file. Or you can recreate in your version using the below steps:
Repeat step
Repeat Definition
Repeat type: until statement is true
Maximum number of iterations on each line: parseInt(record.fields.repeat);
Condition:
Left Operand
Based on: JavaScript
Expression: steps.currentLoopCounter;
Operator: is equal to Invert condition: not selected
Operand types: Integer
Based on: JavaScript
Expression: parseInt(record.fields.repeat);
GoTo step:
From: Top of record
Move to : 1
Alternatively, if you simply want to print X copies of the same record, then you don’t need a Repeat step. At the top of your data mapping config, just after the Preprocessor step, add the Action step with the Expression: