Message "XCOMM0105E &DATE(DD)-&DATE... DATA INVALID" when using &DATE variable

Document ID : KB000007948
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

XCOMJOB fails with message "XCOMM0105E &DATE(DD)-&DATE... DATA INVALID" when trying to use the &DATE variable on the FILE= SYSIN01 parameter. Here is how the parameter was specified:

FILE='C:\directory\filename'  +

&DATE(MMDD)

 

 

 

Environment:
z/OSXCOM r12
Resolution:

You must make sure that you are using the correct format for the &DATE variable. In this case "&DATE(MMDD)" is not valid. If you want to make sure that the Month and Day is part of the filename then the proper way to code the parameter would be:

 

FILE='C:\directory\filename'+ 

&DATE(DD)-&DATE(MM)

 

Note: The continuation character, "+", must be placed immediately after the single quote, otherwise you will continue to receive the XCOMM0105E message.

Additional Information:

Please refer to the CA XCOM r12 User guide for more details on the Symbolic variables and their format.