How to update a profile option from a script in P/I Output Manager

print
The customer is formatting their own variable in PIOE and they want to use that variable in the output file name of the job:

[VARIABLE_RENAME_VALUE] = The desired name of the output file 
[VARIABLE_VALUE1] - Value concatenated to create [VARIABLE_RENAME_VALUE]
[VARIABLE_VALUE2] - Value concatenated to create [VARIABLE_RENAME_VALUE]
[VARIABLE_VALUE3] - Value concatenated to create [VARIABLE_RENAME_VALUE]

1. Format the value for the output file name from other data available within the job:
[FORMAT_RENAME_VALUE] FORMAT [VARIABLE_RENAME_VALUE] FROM "%s%s%s"
   [VARIABLE_VALUE1]
   AND [VARIABLE_VALUE2]
   AND [VARIABLE_BANK_VALUE3];

2.  Add a FORMAT to format the string of the profile option:
[FORMAT_PROFILEOPTION] FORMAT [VARIABLE_PROFILEOPTION] FROM "RENAME=%s" [VARIABLE_RENAME_VALUE];  
<For this example we will say [VARIABLE_RENAME_VALUE]=Hello_World>

3.  Call the PROFILEOPTION to place the option in the modifier:
[PROFILEOPTION_RENAME_VALUE] PROFILEOPTION [VARIABLE_PROFILEOPTION];
<This will place the value RENAME=Hello_World into the modifier of the current job>

4.  In your profile, give the output file name a static value plus the job number:
OUTPUTFILENAME = OUTPUT_PRE_RENAME_%j

5.  Use a POSTJOBCOMMAND to rename the output file using the RENAME value:
POSTJOBCOMMAND REN %OUTPUTDIRECTORY\OUTPUT_PRE_RENAME_%j.pdf %RENAME_%j.pdf
<Notice the output file name and the name in the profile must match the file name of the post job command>

In this example, for PIOM job 1234, the output file created would be OUTPUT_PRE_RENAME_1234.pdf and then would be renamed Hello_World_1234.pdf

Question

Subject: Output File naming issue

Initial Details: Hello, This request is to create a case for the following issue:- We want to use Job id in the name of the output file. Job Id is being created from the VDE script. Logic for the formation of job id is inside the VDE file (VARS.VDE). Please see below snapshot. [cid:image002.jpg@01D21D84.372A8DF0] [cid:image010.jpg@01D21D84.372A8DF0] Is there any way we can use information in [VARIABLE_JOBID] in naming the output file? Output file is being named from the output profile as follows:- [cid:image011.png@01D21D83.3DE75DE0] Expected file name is OUTPUTFILENAME = %[VARIABLE_JOBID]_%prodcode%OUTPUTPOSTFIX Please suggest the resolution for the same. @Anil- Please share the profile, VDE and set file placed at below location with Pitney Support team:- \\10.96.148.182\fos_qa\sumit\PitnyTicket Regards, Pooja Verma Tech Lead / Programmer Analyst Senior FIS Output Solutions T: 172.331.9756 C: 987.854.9637 E: pooja.verma@fisglobal.com FIS | Empowering the Financial World [cid:image001.png@01D112FA.C4A77D90] [cid:image002.png@01D112FA.C4A77D90] [cid:image003.png@01D112FA.C4A77D90] [cid:image009.jpg@01D1810B.6E815C90] The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ________________________________

UPDATED: August 03, 2017

Contact Us