The information in this article applies to:
Product: MIM and PM4Data
Version: 8.x
Platform: all
Discussion
If arguments are passed into a program, shell script, or .bat file, the -exitdata argument must be enclosed in double quotes if the FTF command line program is used.
For example, consider the following Windows .bat file called arg.bat, which takes 2 command line arguments:
rem displays arguments passed in echo the name of this bat file is: %0 echo the value of argument 1 is %1 echo the value of argument 2 is %2
If you are using the XMOSYSPM System Call Exit to submit the request, then the following command line can be used:
C:\\>ftf -sqm MYQMGR -dqm MYQMGR -spath c:\\spath\\test.file -dpath c:\\temp\\test.file -exit 5 -exitdll xmosyspm -exitentry xmoSysCall -exitqm MYQMGR -exitdata "c:\\arg.bat test1 test2" -wait 10 FTF Request completed successfully (27cf55bc-00e4-4bae-a1bd-f914ce719885), time=2 secs!
Output from the Process Auditor:
Output \[XML\] (2007-10-03 10:22:06) Label: Output Info: ProcessInfo Type: XML ReferenceTime: 2007-10-03 10:22:06 ProcessId: ActivityId: c9fa981f-3385-46a9-922a-4638d20d1cfb ReferenceId: 9b900c62-e150-4ded-b864-4e4e91fef560 c:\\arg.bat test1 test2 C:\\>rem displays arguments passed in C:\\>echo the name of this bat file is: c:\\arg.bat the name of this bat file is: c:\\arg.bat C:\\>echo the value of argument 1 is test1 the value of argument 1 is test1 C:\\>echo the value of argument 2 is test2 the value of argument 2 is test2 UNKNOWN 0
- Note: If the request is stored in the Registry, no double quotes are required in the exitdata field.