CA XCOM Data Transport

XCOM parameters are passed to XCOMPP.bat surrounded by double quotes

  • 1.  XCOM parameters are passed to XCOMPP.bat surrounded by double quotes

    Posted 08-24-2015 06:17 AM

    We are using an XCOMPP.bat to process files after receiving them from the mainframe. We use the value of the ID= parameter as a name of batch file that is being started from XCOMPP.bat, that is, we issue: 'START %ident%.bat'.

    As I downloaded XCOM 11.6 for Windows Server and tested it, I found out that the batch file did not run as it did on XCOM 11.5.

    Using intermediate printing, I realized that the parameters are passed to XCOMPP.bat surrounded by double quotes,

    and consequently, the %ident%.bat cannot be located.

     

    So, I opened a case, and was soon told that CA had to introduce the QUOTES because of customers' requests, since there were other problems previously when they were using filenames containing BLANKS ("program files" etc.). CA sugguested that I remove the QUOTESby making use of the new functions of the batch SET command in Windows.

     

    For example before doing the

    'START %ident%.bat'

    I could just need to insert this line:

    'set ident=%ident:~1,-1%'

    to remove the quotes from the variable.

     

    I tried it, and indeed, this resolves the problem.

    Since this change was not documented in any of the Release Summary, I thought I'd share it here.