Skip to content

Error when executing the CREASTMT job in CardDemo Blu Age modernized application

3

In AppStream, the execution of the CREASTMT job fails, with the following response:

{ "exitCode": -1, "stepName": "STEP040", "program": "CBSTM03A", "status": "Error" }

The tomcat console shows the following error:

class com.netfective.bluage.gapwalk.bluesam.core.ESDS cannot be cast to class com.netfective.bluage.gapwalk.bluesam.KeySequencedDataSet (com.netfective.bluage.gapwalk.bluesam.core.ESDS and com.netfective.bluage.gapwalk.bluesam.KeySequencedDataSet are in unnamed module of loader java.net.URLClassLoader @8bd1b6a)

I checked the Bluesam datasets, AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS is created successfully but its type is ESDS, not KSDS.

AWS

asked 3 years ago517 views

1 Answer
3
Accepted Answer

There is a known issue in the execution of IDCAMS commands with Blu Age. The whitespaces are wrongly interpreted, so they need to be removed. In your example, you have:

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))""", getEncoding())

It should instead be:

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))""", getEncoding())
AWS

answered 3 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.