- Newest
- Most votes
- Most comments
The error you're encountering in the CREASTMT job is likely due to an issue with the IDCAMS command syntax in your groovy script. The error message suggests that there's an unexpected 'DATA' keyword in the DEFINE CLUSTER command.
This problem is often caused by incorrect spacing or line breaks in the IDCAMS commands. In Blu Age, whitespace interpretation can be sensitive, leading to syntax errors.
To resolve this issue, try modifying your DEFINE CLUSTER command by removing all extra spaces and ensuring each clause is on a single line. Here's a corrected version of the DEFINE CLUSTER command:
DEFINE CLUSTER (NAME(AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS) -
KEYS(32 0) -
RECORDSIZE(350 350) -
INDEXED) -
DATA (NAME(AWS.M2.CARDDEMO.TRXFL.DATA)) -
INDEX (NAME(AWS.M2.CARDDEMO.TRXFL.INDEX))
Make sure there are no extra spaces at the beginning of each line and that each line ends with a hyphen (-) except for the last line. This should help the IDCAMS parser interpret the command correctly.
If the issue persists after making these changes, you may need to review the entire IDCAMS command set in your script for any other syntax errors or unexpected characters. Also, ensure that the encoding of your script file matches the expected encoding in your Blu Age environment.
Sources
Error when executing the CREASTMT job in CardDemo Blu Age modernized application | AWS re:Post
Relevant content
- AWS OFFICIALUpdated 2 years ago

Hi...Made changes to remove whitespaces to groovy statement and it worked as expected.