MFmainframe-rea
WS carddemo · 26f629ef

jcl · 84 lines · sha256 3f222d940612015bapp/jcl/CUSTFILE.jcl

1//CUSTFILE JOB 'DEFINE CUSTOMER FILE',CLASS=A,MSGCLASS=0,
2// 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//* Close files in CICS region
21//*********************************************************************
22//CLCIFIL EXEC PGM=SDSF
23//ISFOUT DD SYSOUT=*
24//CMDOUT DD SYSOUT=*
25//ISFIN DD *
26 /F CICSAWSA,'CEMT SET FIL(CUSTDAT ) CLO'
27/*
28//*
29//* *******************************************************************
30//* DELETE CUSTOMER VSAM FILE IF ONE ALREADY EXISTS
31//* *******************************************************************
32//STEP05 EXEC PGM=IDCAMS
33//SYSPRINT DD SYSOUT=*
34//SYSIN DD *
35 DELETE AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS -
36 CLUSTER
37 IF MAXCC LE 08 THEN SET MAXCC = 0
38/*
39//*
40//* *******************************************************************
41//* DEFINE CUSTOMER VSAM FILE
42//* *******************************************************************
43//STEP10 EXEC PGM=IDCAMS
44//SYSPRINT DD SYSOUT=*
45//SYSIN DD *
46 DEFINE CLUSTER (NAME(AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS) -
47 CYLINDERS(1 5) -
48 VOLUMES(AWSHJ1 -
49 ) -
50 KEYS(9 0) -
51 RECORDSIZE(500 500) -
52 SHAREOPTIONS(2 3) -
53 ERASE -
54 INDEXED -
55 ) -
56 DATA (NAME(AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS.DATA) -
57 ) -
58 INDEX (NAME(AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS.INDEX) -
59 )
60/*
61//* *******************************************************************
62//* COPY DATA FROM FLAT FILE TO VSAM FILE
63//* *******************************************************************
64//STEP15 EXEC PGM=IDCAMS
65//SYSPRINT DD SYSOUT=*
66//CUSTDATA DD DISP=SHR,
67// DSN=AWS.M2.CARDDEMO.CUSTDATA.PS
68//CUSTVSAM DD DISP=SHR,
69// DSN=AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS
70//SYSIN DD *
71 REPRO INFILE(CUSTDATA) OUTFILE(CUSTVSAM)
72/*
73//*********************************************************************
74//* Open files in CICS region
75//*********************************************************************
76//OPCIFIL EXEC PGM=SDSF
77//ISFOUT DD SYSOUT=*
78//CMDOUT DD SYSOUT=*
79//ISFIN DD *
80 /F CICSAWSA,'CEMT SET FIL(CUSTDAT ) OPE'
81/*
82//*
83//* Ver: CardDemo_v1.0-15-g27d6c6f-68 Date: 2022-07-19 23:23:05 CDT
84//*