MFmainframe-rea
WS carddemo · 26f629ef

jcl · 65 lines · sha256 7a10aa43bd673700app/jcl/TRANTYPE.jcl

1//TRANTYPE JOB 'DEFINE TRAN TYPE',
2// CLASS=A,MSGCLASS=0,NOTIFY=&SYSUID
3//******************************************************************
4//* Copyright Amazon.com, Inc. or its affiliates.
5//* All Rights Reserved.
6//*
7//* Licensed under the Apache License, Version 2.0 (the "License").
8//* You may not use this file except in compliance with the License.
9//* You may obtain a copy of the License at
10//*
11//* http://www.apache.org/licenses/LICENSE-2.0
12//*
13//* Unless required by applicable law or agreed to in writing,
14//* software distributed under the License is distributed on an
15//* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
16//* either express or implied. See the License for the specific
17//* language governing permissions and limitations under the License
18//******************************************************************
19//* *******************************************************************
20//* DELETE TRANSACATION TYPE VSAM FILE IF ONE ALREADY EXISTS
21//* *******************************************************************
22//STEP05 EXEC PGM=IDCAMS
23//SYSPRINT DD SYSOUT=*
24//SYSIN DD *
25 DELETE AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS -
26 CLUSTER
27 SET MAXCC = 0
28/*
29//*
30//* *******************************************************************
31//* DEFINE TRANSACATION TYPE VSAM FILE
32//* *******************************************************************
33//STEP10 EXEC PGM=IDCAMS
34//SYSPRINT DD SYSOUT=*
35//SYSIN DD *
36 DEFINE CLUSTER (NAME(AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS) -
37 CYLINDERS(1 5) -
38 VOLUMES(AWSHJ1 -
39 ) -
40 KEYS(2 0) -
41 RECORDSIZE(60 60) -
42 SHAREOPTIONS(1 4) -
43 ERASE -
44 INDEXED -
45 ) -
46 DATA (NAME(AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS.DATA) -
47 ) -
48 INDEX (NAME(AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS.INDEX) -
49 )
50/*
51//* *******************************************************************
52//* COPY DATA FROM FLAT FILE TO VSAM FILE
53//* *******************************************************************
54//STEP15 EXEC PGM=IDCAMS
55//SYSPRINT DD SYSOUT=*
56//TRANTYPE DD DISP=SHR,
57// DSN=AWS.M2.CARDDEMO.TRANTYPE.PS
58//TTYPVSAM DD DISP=OLD,
59// DSN=AWS.M2.CARDDEMO.TRANTYPE.VSAM.KSDS
60//SYSIN DD *
61 REPRO INFILE(TRANTYPE) OUTFILE(TTYPVSAM)
62/*
63//*
64//* Ver: CardDemo_v1.0-15-g27d6c6f-68 Date: 2022-07-19 23:23:08 CDT
65//*