Skip to content

Blu Age L3 Workshop : Execution > Test > Batch > CREASTMT - { "exitCode": -1, "stepName": "STEP020", "program": "IDCAMS", "status": "Error" }

0

Hi, When I executed CREASTMT job as per the instructions given in L3 workshop which is as follows: 6. Execute CREASTMT job (https://catalog.us-east-1.prod.workshops.aws/workshops/bf71c0bc-6d8a-4d04-9c10-ab479f7f0e37/en-US/execution/test/batch) And then, I got an error: { "exitCode": -1, "stepName": "STEP020", "program": "IDCAMS", "status": "Error" } Previous job (COMBTRAN) was succeeded and files and blusam ware expected.

The log is below. How do I solve this error? I saw this post (https://repost.aws/ja/questions/QUATMaUSKuQnirysOg9Tc7rA/l3-workshop-creastmt-batch-job-failing-in-the-very-first-step-exitcode-1-stepname-deldef01-program-idcams-status-error) and modified DEFINE CLUSTER command, but this error occurred (before modified, same error occurred).

2025-01-13_13-44-49-519 | [JOB] CREASTMT - Started
2025-01-13_13-44-49-526 | [STEP] DELDEF01 - Started
2025-01-13T12:44:49.533Z  INFO 4312 --- [      Thread-21] c.n.b.g.r.c.i.ExecutionControllerImpl    : Executing program: IDCAMS
2025-01-13T12:44:49.533Z  INFO 4312 --- [      Thread-21] c.n.b.g.rt.db.stats.DatabaseStatistics   : DATABASE STATISTIC DISABLED
2025-01-13T12:44:49.536Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.utility.idcams.IdcamsPgm   : IDCAMS DELETE : DELETE    AWS.M2.CARDDEMO.TRXFL.SEQ
2025-01-13T12:44:49.537Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.bluesam.BluesamDeletePgm       : Data set AWS.M2.CARDDEMO.TRXFL.SEQ does not exists.
2025-01-13T12:44:49.538Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.utility.idcams.IdcamsPgm   : IDCAMS DELETE : DELETE    AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS             CLUSTER
2025-01-13T12:44:49.540Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.bluesam.BluesamDeletePgm       : Data set AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS does not exists.
2025-01-13T12:44:49.540Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.utility.idcams.IdcamsPgm   : IDCAMS SET : SET       MAXCC = 0
2025-01-13T12:44:49.540Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.utility.idcams.IdcamsPgm   : IDCAMS DEFINE : 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))
2025-01-13T12:44:49.541Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.bluesam.BluesamCreatePgm       : new Key(PRIMEKEY, false, [0, 32])
2025-01-13T12:44:49.562Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.bluesam.BluesamCreatePgm       : Dataset AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS is created (compress=false, fixedLength=true, recordLength=350). Result = OK
2025-01-13_13-44-49-568 | Program return code is 0
2025-01-13_13-44-49-574 | [STEP] DELDEF01 - Ended
2025-01-13_13-44-49-606 | [STEP] STEP010 - Started
2025-01-13T12:44:49.614Z  INFO 4312 --- [      Thread-21] c.n.b.g.r.c.i.ExecutionControllerImpl    : Executing program: SORT
2025-01-13T12:44:49.614Z  INFO 4312 --- [      Thread-21] c.n.b.g.rt.db.stats.DatabaseStatistics   : DATABASE STATISTIC DISABLED
2025-01-13T12:44:49.619Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.io.support.FileFactory     : Created new file [D:\PhotonUser\Workshop\working-directory\.\AWS.M2.CARDDEMO.TRXFL.SEQ]
2025-01-13T12:44:49.854Z  INFO 4312 --- [      Thread-21] c.n.b.g.r.sort.service.AdaptableSort     : External sort threshold is 2069056644 bytes
2025-01-13T12:44:49.854Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.s.s.e.io.DataSetRecordReader   : Open dataSet AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS status = OK
2025-01-13T12:44:49.872Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.s.s.e.ExternalSortTasklet      : fcOut:FileSystemFileConfiguration [path=AWS.M2.CARDDEMO.TRXFL.SEQ, isStream=false, isEmptyDd=false, recordSize=350, rdw=false, bdw=false, isMFCompatible=false, isPrinter=false, recordFormat=U, isAnsiCarriageControl=false, isLF=false, isCRLF=false, isTemporary=false, jobContext=com.netfective.bluage.gapwalk.rt.job.support.DefaultJobContext@37d75ff4, ]
2025-01-13T12:44:49.872Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.utility.common.FileUtils   : .\AWS.M2.CARDDEMO.TRXFL.SEQ - Existing file! - no file creation.
2025-01-13T12:44:49.874Z  INFO 4312 --- [      Thread-21] c.n.b.gapwalk.utility.common.FileUtils   : .\AWS.M2.CARDDEMO.TRXFL.SEQ - Existing file! - no file creation.
2025-01-13T12:44:49.874Z  INFO 4312 --- [      Thread-21] c.n.b.g.u.s.s.e.ExternalSortTasklet      : Sort output file length = 109200 bytes 
2025-01-13T12:44:49.875Z  INFO 4312 --- [      Thread-21] c.n.b.g.i.c.i.AbstractDatasetCatalogImpl : Register Dataset - Registered a new dataset: AWS.M2.CARDDEMO.TRXFL.SEQ
2025-01-13_13-44-49-875 | Program return code is 0
2025-01-13_13-44-49-876 | [STEP] STEP010 - Ended
2025-01-13_13-44-49-889 | [STEP] STEP020 - Started
2025-01-13T12:44:49.953Z  INFO 4312 --- [      Thread-21] c.n.b.g.r.job.support.GroovyJobExecutor  : Groovy script CREASTMT failed [step STEP020] [pgm IDCAMS] [exit code -1]
2025-01-13T12:44:49.953Z ERROR 4312 --- [      Thread-21] c.n.b.g.r.job.support.GroovyJobExecutor  : Failure cause :

groovy.lang.MissingMethodException: No signature of method: java.util.LinkedHashMap.withParameters() is applicable for argument types: (LinkedHashMap) values: [[MapTransfo:[:]]]
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:72)
	at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at CREASTMT$_stepSTEP020_closure4$_closure9.doCall(CREASTMT.groovy:156)
	at CREASTMT$_stepSTEP020_closure4$_closure9.doCall(CREASTMT.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 CREASTMT$_stepSTEP020_closure4.doCall(CREASTMT.groovy:139)
	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 groovy.lang.Closure.call(Closure.java:433)
	at groovy.lang.Closure.call(Closure.java:422)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:369)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:314)
	at org.codehaus.groovy.runtime.dgm$914.doMethodInvoke(Unknown Source)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at CREASTMT.stepSTEP020(CREASTMT.groovy:136)
	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 groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1334)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1089)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1008)
	at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:645)
	at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:628)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:405)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:330)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1008)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at CREASTMT$_run_closure1.doCall(CREASTMT.groovy:51)
	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 groovy.lang.Closure.call(Closure.java:433)
	at groovy.lang.Closure.call(Closure.java:422)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:369)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:314)
	at org.codehaus.groovy.runtime.dgm$914.doMethodInvoke(Unknown Source)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
	at CREASTMT.run(CREASTMT.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)

2025-01-13T12:44:49.968Z  INFO 4312 --- [      Thread-21] c.n.b.g.r.job.support.DefaultJobContext  : Job [936861684] - starting final operation
2025-01-13T12:44:49.968Z  INFO 4312 --- [      Thread-21] c.n.b.g.r.job.support.DefaultJobContext  : End of job [936861684]
2025-01-13T12:44:49.968Z  INFO 4312 --- [      Thread-21] c.n.b.g.rt.script.ScriptControlTower     : Removed jobExecutor [1d42c548-f6c2-440c-a294-0e050469c29e] from Script Control Tower.
2025-01-13T12:44:49.968Z  INFO 4312 --- [      Thread-21] c.n.b.g.rt.script.ScriptControlTower     : Remaining jobExecutors:0
AWS

asked 2 years ago209 views

2 Answers
1

The error you're encountering in the CREASTMT job during the Blu Age L3 Workshop is related to a Groovy script execution issue in STEP020. The problem appears to be a missing method called 'withParameters()' that the script is trying to use on a LinkedHashMap object.

This error suggests there might be an issue with the Groovy script itself, possibly due to a syntax error or an incompatibility with the current version of Groovy being used in the workshop environment.

To resolve this issue, you can try the following steps:

  1. Review the CREASTMT Groovy script, particularly around line 156 where the error is occurring. Look for any syntax errors or incorrect method calls.

  2. Ensure that the Groovy script is up-to-date and compatible with the current workshop environment. There might have been changes or updates to the script that haven't been applied to your workshop instance.

  3. If you have made any custom modifications to the script, try reverting them to see if the original version works correctly.

  4. Check if there are any specific instructions or known issues for this particular step in the workshop documentation.

  5. Verify that all required datasets and resources are properly set up and accessible to the job.

  6. If possible, try restarting the Tomcat server or the entire workshop environment to ensure all components are in a clean state.

If the issue persists after trying these steps, you may need to reach out to the workshop facilitators or AWS Blu Age support for more specific guidance, as there might be workshop-specific configurations or requirements that need to be addressed.
Sources
AWS Blu Age Workshop Execution->Test->Batch, Execute CREASTMT Job { "exitCode": 4, "stepName": "STEP020", "program": "IDCAMS", "status": "Succeeded" } | AWS re:Post
AWS BluAge L3 Workshop - Execution - Test - Batch - COMBTRAN - Issue | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

  • I could not solve this issue... I added new comment. Could someone please see additional comment?

0

I checked above 6 points. But, I could not find a reason of issue and could not solve this problem. I think this problem is related to legacy JCL syntax. But I don't have knowledge of legacy code. My CREASTMT.groovy script is below. Please see line 156. Can someone help me to solve this issue?

// Import
import com.netfective.bluage.gapwalk.rt.provider.ScriptRegistry
import com.netfective.bluage.gapwalk.rt.call.MainProgramRunner
import com.netfective.bluage.gapwalk.io.support.FileConfigurationUtils
import com.netfective.bluage.gapwalk.rt.job.support.DefaultJobContext
import com.netfective.bluage.gapwalk.rt.utils.GroovyUtils
import com.netfective.bluage.gapwalk.rt.io.support.FileConfiguration
import com.netfective.bluage.gapwalk.rt.shared.AbendException
import com.netfective.bluage.gapwalk.rt.call.exception.GroovyExecutionException
// Variables
mpr = applicationContext.getBean("com.netfective.bluage.gapwalk.rt.call.ExecutionController", MainProgramRunner.class)
TreeMap mapTransfo = [:]
Map params = ["MapTransfo":mapTransfo]
// Execute job with utility functions
Binding binding = new Binding()
binding.setVariable("jobContext", jobContext)
def shell = new GroovyShell(binding).parse(ScriptRegistry.getScript("functions"))
//*********************************************************************
//*                             JOB                                   *
//*********************************************************************
shell.with {
	def jobName = "CREASTMT"
	mpr.setJobContext(jobContext)
	displayStartJob(jobName)
	Map programResults = jobContext.getProgramResults().clone()
	def lastProgramResult
	//*****************************************************************
	// Copyright Amazon.com, Inc. or its affiliates.
	// All Rights Reserved.
	//
	// Licensed under the Apache License, Version 2.0 (the "License").
	// You may not use this file except in compliance with the License.
	// You may obtain a copy of the License at
	//
	//    http://www.apache.org/licenses/LICENSE-2.0
	//
	// Unless required by applicable law or agreed to in writing,
	// software distributed under the License is distributed on an
	// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
	// either express or implied. See the License for the specific
	// language governing permissions and limitations under the License
	//*****************************************************************
	// This JCL will create statement for each CARD present in the XREF
	// file
	//*****************************************************************
	lastProgramResult = stepDELDEF01(shell, params, programResults)
	//********************************************************************
	// CREATE COPY OF TRANSACT FILE WITH CARD NUMBER AND TRAN ID AS KEY
	//********************************************************************
	lastProgramResult = stepSTEP010(shell, params, programResults)
	lastProgramResult = stepSTEP020(shell, params, programResults)
	//********************************************************************
	// DELETE TRANSACTION REPORTS FROM PREVIOUS RUN
	//********************************************************************
	lastProgramResult = stepSTEP030(shell, params, programResults)
	//********************************************************************
	// PRODUCING REPORT IN TEXT AND HTML - DEMONSTRATES CALLED SUBROUTINE
	//********************************************************************
	lastProgramResult = stepSTEP040(shell, params, programResults)
	displayEndJob(jobName)
	return programResults.get("GroovyExecutionResult")
}
//*********************************************************************
//*                            STEPS                                  *
//*********************************************************************
// STEP DELDEF01 - PGM - IDCAMS***************************************************
def stepDELDEF01(Object shell, Map params, Map programResults){
	shell.with {
		if (checkValidProgramResults(programResults)) {
			return execStep("DELDEF01", "IDCAMS", programResults, {
				mpr
					.withFileConfigurations(new FileConfigurationUtils()
						.withJobContext(jobContext)
						.systemOut("SYSPRINT")
						.output("*")
						.build()
						.fileSystem("SYSIN")
.stream(
"""  DELETE    AWS.M2.CARDDEMO.TRXFL.SEQ
  DELETE    AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS -
            CLUSTER
  SET       MAXCC = 0
  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())
.build()
						.getFileConfigurations())
					.withParameters(params)
					.runProgram("IDCAMS")
				})
		}
	}
}
// STEP STEP010 - PGM - SORT******************************************************
def stepSTEP010(Object shell, Map params, Map programResults){
	shell.with {
		if (checkValidProgramResults(programResults)) {
			return execStep("STEP010", "SORT", programResults, {
				mpr
					.withFileConfigurations(new FileConfigurationUtils()
						.withJobContext(jobContext)
						.bluesam("SORTIN")
						.dataset("AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS")
						.disposition("SHR")
						.build()
						.systemOut("SYSPRINT")
						.output("*")
						.build()
						.systemOut("SYSOUT")
						.output("*")
						.build()
						.fileSystem("SORTOUT")
						.path("AWS.M2.CARDDEMO.TRXFL.SEQ")
						.recordSize(350)
						.disposition("NEW")
						.normalTermination("CATLG")
						.abnormalTermination("DELETE")
						.build()
						.fileSystem("SYSIN")
						.stream(
"""  SORT FIELDS=(263,16,CH,A,1,16,CH,A)
  OUTREC FIELDS=(1:263,16,17:1,262,279:279,50)""", getEncoding())
						.build()
						.getFileConfigurations())
					.withParameters(params)
					.runProgram("SORT")
				})
		}
	}
}
// STEP STEP020 - PGM - IDCAMS****************************************************
def stepSTEP020(Object shell, Map params, Map programResults){
	shell.with {
		if (checkValidProgramResults(programResults)) {
			if (checkAllPreviousProgramResults(programResults, 'NE', 0)) {
				return execStep("STEP020", "IDCAMS", programResults, {
					mpr
						.withFileConfigurations(new FileConfigurationUtils()
							.withJobContext(jobContext)
							.systemOut("SYSPRINT")
							.output("*")
							.build()
							fileSystem("INFILE")
							.path("AWS.M2.CARDDEMO.TRXFL.SEQ")
							.recordSize(350)
							.disposition("SHR")
							.build()
							.bluesam("OUTFILE")
							.dataset("AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS")
							.disposition("SHR")
							.build()
							.fileSystem("SYSIN")
							.stream("  REPRO INFILE(INFILE) OUTFILE(OUTFILE)", getEncoding())
							.build()
							.getFileConfigurations())
						.withParameters(params)
						.runProgram("IDCAMS")
					})
			}
		}
	}
}
// STEP STEP030 - PGM - IEFBR14***************************************************
def stepSTEP030(Object shell, Map params, Map programResults){
	shell.with {
		if (checkValidProgramResults(programResults)) {
			if (checkAllPreviousProgramResults(programResults, 'NE', 0)) {
				return execStep("STEP030", "IEFBR14", programResults, {
					mpr
						.withFileConfigurations(new FileConfigurationUtils()
							.withJobContext(jobContext)
							.fileSystem("HTMLFILE")
							.path("AWS.M2.CARDDEMO.STATEMNT.HTML")
							.disposition("MOD")
							.normalTermination("DELETE")
							.abnormalTermination("DELETE")
							.build()
							.fileSystem("STMTFILE")
							.path("AWS.M2.CARDDEMO.STATEMNT.PS")
							.disposition("MOD")
							.normalTermination("DELETE")
							.abnormalTermination("DELETE")
							.build()
							.getFileConfigurations())
						.withParameters(params)
						.runProgram("IEFBR14")
					})
			}
		}
	}
}
// STEP STEP040 - PGM - CBSTM03A**************************************************
def stepSTEP040(Object shell, Map params, Map programResults){
	shell.with {
		if (checkValidProgramResults(programResults)) {
			if (checkAllPreviousProgramResults(programResults, 'NE', 0)) {
				return execStep("STEP040", "CBSTM03A", programResults, {
					mpr
						.withFileConfigurations(new FileConfigurationUtils()
							.withJobContext(jobContext)
							.bluesam("STEPLIB")
							.dataset("AWS.M2.CARDDEMO.LOADLIB")
							.disposition("SHR")
							.build()
							.systemOut("SYSPRINT")
							.output("*")
							.build()
							.systemOut("SYSOUT")
							.output("*")
							.build()
							.bluesam("TRNXFILE")
							.dataset("AWS.M2.CARDDEMO.TRXFL.VSAM.KSDS")
							.disposition("SHR")
							.build()
							.bluesam("XREFFILE")
							.dataset("AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS")
							.disposition("SHR")
							.build()
							.bluesam("ACCTFILE")
							.dataset("AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS")
							.disposition("SHR")
							.build()
							.bluesam("CUSTFILE")
							.dataset("AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS")
							.disposition("SHR")
							.build()
							.fileSystem("STMTFILE")
							.path("AWS.M2.CARDDEMO.STATEMNT.PS")
							.disposition("NEW")
							.normalTermination("CATLG")
							.abnormalTermination("DELETE")
							.build()
							.fileSystem("HTMLFILE")
							.path("AWS.M2.CARDDEMO.STATEMNT.HTML")
							.disposition("NEW")
							.normalTermination("CATLG")
							.abnormalTermination("DELETE")
							.build()
							.getFileConfigurations())
						.withParameters(params)
						.runProgram("CBSTM03A")
					})
			}
		}
	}
}
AWS

answered 2 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.