MFmainframe-rea
WS carddemo · 26f629ef

jcl · 72 lines · sha256 2af5ab38310c8623app/jcl/CBEXPORT.jcl

1//CBEXPORT JOB 'Export Customer Data for Migration',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//* EXPORT CUSTOMER DATA FROM VSAM FILES TO MULTI-RECORD EXPORT FILE
20//* FOR BRANCH MIGRATION OR DATA TRANSFER PURPOSES
21//* *******************************************************************
22//* STEP 1: DEFINE VSAM CLUSTER FOR EXPORT FILE
23//* *******************************************************************
24//STEP01 EXEC PGM=IDCAMS
25//SYSPRINT DD SYSOUT=*
26//SYSIN DD *
27 DELETE AWS.M2.CARDDEMO.EXPORT.DATA CLUSTER PURGE
28 SET MAXCC = 0
29
30 DEFINE CLUSTER (NAME(AWS.M2.CARDDEMO.EXPORT.DATA) -
31 INDEXED -
32 KEYS(4 28) -
33 RECORDSIZE(500 500) -
34 CYLINDERS(10 5) -
35 FREESPACE(10 10) -
36 SHAREOPTIONS(2 3)) -
37 DATA (NAME(AWS.M2.CARDDEMO.EXPORT.DATA.DATA)) -
38 INDEX (NAME(AWS.M2.CARDDEMO.EXPORT.DATA.INDEX))
39/*
40//* *******************************************************************
41//* STEP 2: RUN EXPORT PROGRAM
42//* *******************************************************************
43//STEP02 EXEC PGM=CBEXPORT
44//STEPLIB DD DISP=SHR,
45// DSN=AWS.M2.CARDDEMO.LOADLIB
46//*
47//* INPUT VSAM FILES
48//*
49//CUSTFILE DD DISP=SHR,
50// DSN=AWS.M2.CARDDEMO.CUSTDATA.VSAM.KSDS
51//ACCTFILE DD DISP=SHR,
52// DSN=AWS.M2.CARDDEMO.ACCTDATA.VSAM.KSDS
53//XREFFILE DD DISP=SHR,
54// DSN=AWS.M2.CARDDEMO.CARDXREF.VSAM.KSDS
55//TRANSACT DD DISP=SHR,
56// DSN=AWS.M2.CARDDEMO.TRANSACT.VSAM.KSDS
57//CARDFILE DD DISP=SHR,
58// DSN=AWS.M2.CARDDEMO.CARDDATA.VSAM.KSDS
59//*
60//* OUTPUT EXPORT VSAM FILE
61//*
62//EXPFILE DD DISP=SHR,
63// DSN=AWS.M2.CARDDEMO.EXPORT.DATA
64//*
65//* SYSTEM OUTPUT
66//*
67//SYSOUT DD SYSOUT=*
68//SYSPRINT DD SYSOUT=*
69//*
70//*
71//* Ver: CardDemo_v2.0-44-gb6e9c27-254 Date: 2025-10-16 14:07:18 CDT
72//*