Skip to content

AWS Blu Age L3 Workshop: TRANBKP error - { "exitCode": -1, "stepName": "PRC001", "program": "IDCAMS", "status": "Error" }

1

Hi, currently I am doing a step (Execution -> Test -> Batch -> TRANBKP job) of the AWS Blu Age Level 3 Self-Paced Troubleshooting Workshop. (https://catalog.us-east-1.prod.workshops.aws/workshops/bf71c0bc-6d8a-4d04-9c10-ab479f7f0e37/en-US/execution/test/batch)

I did a job TRANBKP (http://localhost:8080/gapwalk-application/script/TRANBKP) and I got an error - { "exitCode": -1, "stepName": "PRC001", "program": "IDCAMS", "status": "Error" }. A log is below. I could not find the reason this error. Could someone please help to solve this problem?

2024-12-31T07:05:37.619Z  INFO 2948 --- [nio-8080-exec-4] c.n.b.g.rt.provider.CheckpointRegistry   : Remove checkpoint TRANBKP
2024-12-31T07:05:37.622Z  INFO 2948 --- [nio-8080-exec-4] c.n.b.g.rt.script.BatchWebController     : --> executing script TRANBKP
2024-12-31T07:05:37.638Z  INFO 2948 --- [nio-8080-exec-4] c.n.b.g.rt.script.BatchWebController     : Bound jobContext 366460658 - GDGEventsQueueHandler :683457157
2024-12-31T07:05:37.644Z  INFO 2948 --- [nio-8080-exec-4] c.n.b.g.rt.script.ScriptControlTower     : Added jobExecutor [c6a627bf-3543-4410-bc40-55ec5f9906e8] to Sync Script Control Tower.
2024-12-31T07:05:37.657Z  INFO 2948 --- [nio-8080-exec-4] c.n.b.g.r.j.support.AbstractJobExecutor  : c6a627bf-3543-4410-bc40-55ec5f9906e8 - worker :Thread-13 [968860920]
2024-12-31T07:05:37.662Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.job.support.GroovyJobExecutor  : Triggered script: TRANBKP - [c6a627bf-3543-4410-bc40-55ec5f9906e8] - jobContext [366460658]
2024-12-31T07:05:37.707Z  INFO 2948 --- [      Thread-13] c.n.b.g.rt.utils.GroovyScriptRunnerPlus  : No custom packages to scan.
2024-12-31T07:05:37.707Z  INFO 2948 --- [      Thread-13] c.n.b.g.rt.utils.GroovyScriptRunnerPlus  : GroovyScriptRunnerPlus : setup done!

2024-12-31_08-05-41-177 | [JOB] TRANBKP - Started
2024-12-31_08-05-41-276 | [STEP] STEP05R - Started
2024-12-31_08-05-41-409 | [EXEC GROOVY FILE] D:\PhotonUser\AppData\Local\Temp\2\blu_age_rt_temp_dir\TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360.groovy - Started
2024-12-31_08-05-41-923 | [PROC] REPROC - Started
2024-12-31_08-05-41-944 | [STEP] PRC001 - Started
2024-12-31T07:05:41.984Z  INFO 2948 --- [      Thread-13] c.n.b.g.i.s.FileConfigurationUtils       : PRC001.FILEIN : BluesamFileConfiguration [bluesamId=, dataset=AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS, cacheCompression=false, warmUp=true, isAnsiCarriageControl=false, disposition=SHR, normal termination=KEEP, abnormal termination=KEEP]
2024-12-31T07:05:41.985Z  INFO 2948 --- [      Thread-13] c.n.b.g.i.s.FileConfigurationUtils       : PRC001.FILEOUT : GDGSupportConfiguration [relativeGeneration=1, name=AWS.M2.CARDDEMO.TRANSACT.BKUP, ownerPath=., cacheCompression=false, warmUp=true, storageProvider=filesystem, recordSize=350, jobContext=com.netfective.bluage.gapwalk.rt.job.support.DefaultJobContext@15d7bef2, rdw=false, bdw=false, isFixed=false, isLF=false, isCRLF=false, isMicroFocusCompatible=false, order=LIFO]
2024-12-31T07:05:41.994Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.c.i.ExecutionControllerImpl    : Executing program: IDCAMS
2024-12-31T07:05:42.028Z  INFO 2948 --- [      Thread-13] c.n.b.g.rt.db.stats.DatabaseStatistics   : DATABASE STATISTIC DISABLED
2024-12-31T07:05:42.186Z  INFO 2948 --- [      Thread-13] c.n.b.g.io.support.basic.BuilderHelper   : Using path =[.\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00] for FileSystem GDG named AWS.M2.CARDDEMO.TRANSACT.BKUP generation 77
2024-12-31T07:05:42.186Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.job.support.DefaultJobContext  : Stored [.\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00] for key (AWS.M2.CARDDEMO.TRANSACT.BKUP,1)
2024-12-31T07:05:42.187Z  INFO 2948 --- [      Thread-13] c.n.b.gapwalk.io.support.FileFactory     : Created new file [D:\PhotonUser\Workshop\working-directory\.\.\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00]
line 1:0 token recognition error at: ''
line 1:1 token recognition error at: '?'
line 1:2 token recognition error at: '?'
line 1:3 token recognition error at: '・
line 1:4 token recognition error at: '?'
line 1:5 token recognition error at: '・
line 1:6 token recognition error at: '`'
line 1:7 token recognition error at: 'ハ'
line 1:8 token recognition error at: 'ム'
line 1:9 token recognition error at: 'ナ'
line 1:10 token recognition error at: 'ヌ'
line 1:11 token recognition error at: 'ネ'
line 1:12 token recognition error at: '?'
line 1:13 token recognition error at: ''
line 1:17 token recognition error at: '?'
line 1:14 mismatched input '_/:' expecting {<EOF>, DELETE, 'BLDINDEX', DEFINE, 'SET', VERIFY, 'REPRO', 'PRINT', 'IF', 'CANCEL', ALLOC, LISTCAT}
2024-12-31T07:05:42.434Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.job.support.DefaultJobContext  : Returning stored dataset path from job context for key (AWS.M2.CARDDEMO.TRANSACT.BKUP,1)
2024-12-31T07:05:42.434Z  INFO 2948 --- [      Thread-13] c.n.b.g.io.support.basic.BuilderHelper   : Retrieved path from jobContext : .\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00
2024-12-31T07:05:42.435Z  INFO 2948 --- [      Thread-13] c.n.b.gapwalk.io.support.FileFactory     : File .\.\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00 deleted
2024-12-31T07:05:42.445Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.job.support.DefaultJobContext  : Returning stored dataset path from job context for key (AWS.M2.CARDDEMO.TRANSACT.BKUP,1)
2024-12-31T07:05:42.445Z  INFO 2948 --- [      Thread-13] c.n.b.g.io.support.basic.BuilderHelper   : Retrieved path from jobContext : .\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00
2024-12-31T07:05:42.450Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.job.support.DefaultJobContext  : Returning stored dataset path from job context for key (AWS.M2.CARDDEMO.TRANSACT.BKUP,1)
2024-12-31T07:05:42.450Z  INFO 2948 --- [      Thread-13] c.n.b.g.io.support.basic.BuilderHelper   : Retrieved path from jobContext : .\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00
2024-12-31T07:05:42.461Z  INFO 2948 --- [      Thread-13] b.g.r.i.s.i.DefaultGDGEventsQueueHandler : [683457157] - Stacked GDG Event :GDGEvent [provider=filesystem, fsPath=./.\AWS.M2.CARDDEMO.TRANSACT.BKUP.G0077V00, gdgName=AWS.M2.CARDDEMO.TRANSACT.BKUP, type=DELETE_GENERATION, relativeGeneration=1, absoluteGeneration=77, ] for [Thread-13]
2024-12-31T07:05:42.461Z  INFO 2948 --- [      Thread-13] c.n.b.gapwalk.io.support.FileFactory     : FileUtils : stack new generation event
2024-12-31T07:05:42.521Z  INFO 2948 --- [      Thread-13] c.n.b.g.r.job.support.GroovyJobExecutor  : Groovy script TRANBKP failed [step PRC001] [pgm IDCAMS] [exit code -1]
2024-12-31T07:05:42.521Z ERROR 2948 --- [      Thread-13] c.n.b.g.r.job.support.GroovyJobExecutor  : Failure cause :

java.lang.RuntimeException: org.antlr.v4.runtime.misc.ParseCancellationException: line 1:14 mismatched input '_/:' expecting {<EOF>, DELETE, 'BLDINDEX', DEFINE, 'SET', VERIFY, 'REPRO', 'PRINT', 'IF', 'CANCEL', ALLOC, LISTCAT}
	at com.netfective.bluage.gapwalk.program.UtilityPgm.run(UtilityPgm.java:268)
	at com.netfective.bluage.gapwalk.rt.call.internal.ExecutionControllerImpl.xaa(Unknown Source)
	at com.netfective.bluage.gapwalk.rt.call.internal.ExecutionControllerImpl.xaa(Unknown Source)
	at com.netfective.bluage.gapwalk.rt.call.internal.ExecutionControllerImpl.xaa(Unknown Source)
	at com.netfective.bluage.gapwalk.rt.call.internal.ExecutionControllerImpl.lambda$runProgram$3(Unknown Source)
	at com.netfective.bluage.gapwalk.rt.call.internal.ExecutionControllerImpl.xaa(Unknown Source)
	at com.netfective.bluage.gapwalk.rt.call.internal.ExecutionControllerImpl.runProgram(Unknown Source)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360$_stepPRC001_closure2$_closure3.doCall(TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360.groovy:61)
	at TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360$_stepPRC001_closure2$_closure3.doCall(TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:279)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1008)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at functions.execStep(functions.groovy:232)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:342)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1008)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360$_stepPRC001_closure2.doCall(TRANBKP_STEP05R_REPROC_2024-12-31_08-05-41-360.groovy:59)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	  :
	  :
	at TRANBKP.run(TRANBKP.groovy:21)
	at com.netfective.bluage.gapwalk.rt.utils.GroovyScriptRunnerPlus.evaluate(Unknown Source)
	at com.netfective.bluage.gapwalk.rt.job.support.GroovyJobExecutor.run(Unknown Source)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.antlr.v4.runtime.misc.ParseCancellationException: line 1:14 mismatched input '_/:' expecting {<EOF>, DELETE, 'BLDINDEX', DEFINE, 'SET', VERIFY, 'REPRO', 'PRINT', 'IF', 'CANCEL', ALLOC, LISTCAT}
	at com.netfective.bluage.parsers.common.exceptions.ParseErrorException.syntaxError(ParseErrorException.java:18)
	at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
	at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:544)
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportInputMismatch(DefaultErrorStrategy.java:327)
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:139)
	at antlr.generated.IdcamsParser.statements(IdcamsParser.java:253)
	at com.netfective.bluage.parsers.idcams.parser.IdcamsPgmParser.parsesAndExtractStatements(IdcamsPgmParser.java:43)
	at com.netfective.bluage.gapwalk.utility.idcams.IdcamsPgm.execute(IdcamsPgm.java:90)
	at com.netfective.bluage.gapwalk.program.UtilityPgm.run(UtilityPgm.java:258)
	... 164 common frames omitted
AWS
asked a year ago360 views
4 Answers
3

Remove encoding from config/application-utility-pgm.yml

answered a year ago
0
Accepted Answer

Thank you for answering Rupesh.

I retried TRANBKP without encoding property from config/application-utility-pgm.yml. The job was succeeded. and Return code is here: { "exitCode": 0, "stepName": "STEP10", "program": "IDCAMS", "status": "Succeeded" }

But, this job did not create a file "TRANBKP_STEP05R_REPROC_yyyy-mm-dd_hh-mm-ss-sss.groovy" that is appear at the workshop explanation . Is it OK? Working-directory after run the TRANBKP Workshop explanation about working-directory of Execution - Test - Batch - TRANBKP

AWS
answered a year ago
  • It will create that file but not in the working directory. Check at D:\PhotonUser\AppData\Local\Temp\2\blu_age_rt_temp_dir... and its a temporary file so that should be fine.

0

The error you're encountering in the AWS Blu Age L3 Workshop during the TRANBKP job execution appears to be related to an issue with parsing the IDCAMS command. The error message suggests that there's a problem with the input data or the IDCAMS command syntax.

Here are a few things to consider:

  1. Check the content of the input file (AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS). It seems the parser is encountering unexpected characters at the beginning of the file, which could indicate corruption or incorrect encoding.

  2. Verify the IDCAMS command in your job definition. The error message indicates a syntax issue, specifically at the 14th character where it encountered "_/:" which it wasn't expecting.

  3. Ensure that the input files and job definitions are using the correct character encoding. The error shows several unrecognized tokens, which could be due to encoding mismatches.

  4. Double-check that you have the correct permissions to access and modify the files involved in this job.

  5. Review the TRANBKP job definition, particularly the IDCAMS command in the PRC001 step, to ensure it's correctly formatted and doesn't contain any typos or unexpected characters.

  6. If possible, try to run the IDCAMS command directly (outside of the Blu Age environment) to see if it executes correctly.

  7. Check if there have been any recent changes to the input data or job definitions that might have introduced this error.

If the issue persists after checking these points, you may need to reach out to AWS support or consult the Blu Age documentation for more specific troubleshooting steps related to IDCAMS command execution in the Blu Age environment.
Sources
AWS Blu Age L3 workshop - Automation step error | AWS re:Post
AWS Blu Age FAQ - AWS Mainframe Modernization
AWS BluAge L3 Workshop - Execution - Test - Batch - COMBTRAN - Issue | AWS re:Post

answered a year ago
0

Commented out. Commented out encoding

answered 6 months 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.