View Single Post
  #1  
Old April 18th, 2017, 09:22 AM
ReminderVDP ReminderVDP is offline
Regular Contributor
 
Join Date: Jan 2013
Location: King of Prussia, PA
Posts: 119
Default Output Files to Specific Directory with OnJobStart

I'm working on a rule to output files to a specific directory based on the letter designation on a data file. And I'm getting some odd errors that I have never got before and I'm not certain my regex is correct for what I need to do.

Our data files are named as the following:
20170405(A or B)_STD_(PC or DM)_record numbers-.txt
i.e. 20170405A_STD_PC_1-20000-.txt

I'm looking to place these in the following location:
D:\FPDirect\Submitted\RUN 20170405A\20170405A_PC_ALL

I started with the following code in a OnJobStart rule and it returned code 1071. I tried it in a OnRecordStart rule and it returned code 1112.

Here is what I am trying in the rules. I'm a novice at regex so bear with my code if it is completely wrong.
------------
FusionPro.Composition.inputFileName = '[^2[0-9][0-9][0-9][0-9][0-9][0-9][0-9]A_STD_PC_1-[0-9][0-9][0-9][0-9][0-9]-.txt$]')

FusionPro.Composition.outputFileFullPathName = 'D:\FPDirect\Submitted\[^RUN 2[0-9][0-9][0-9][0-9][0-9][0-9][0-9]A\2[0-9][0-9][0-9][0-9][0-9][0-9][0-9]A_PC_ALL$]'

Any help would be appreciated. I am using the hot folders for the new Web Services dashboard and leaving the Output File location blank.
__________________
Bryan Mathes, Print Production Specialist
FusionPro Designer 10.1.11, FusionPro Producer (Server) API 10.1.11
Mac OSX 10.12.6
Mac Pro 2.8 GHz Quad Core Intel Xeon
Reply With Quote