MFmainframe-rea
WS carddemo · 26f629ef

jcl · 66 lines · sha256 24ba68991b615b24app/jcl/PRTCATBL.jcl

1//PRTCATBL JOB 'Print Trasaction Category Balance File',
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//JOBLIB JCLLIB ORDER=('AWS.M2.CARDDEMO.PROC')
20//*
21//DELDEF EXEC PGM=IEFBR14
22//THEFILE DD DISP=(MOD,DELETE),
23// UNIT=SYSDA,
24// SPACE=(TRK,(1,1),RLSE),
25// DSN=AWS.M2.CARDDEMO.TCATBALF.REPT
26//* ********************************************************`***********
27//* Unload the processed transaction category balance file
28//* *******************************************************************
29//STEP05R EXEC PROC=REPROC,
30// CNTLLIB=AWS.M2.CARDDEMO.CNTL
31//*
32//PRC001.FILEIN DD DISP=SHR,
33// DSN=AWS.M2.CARDDEMO.TCATBALF.VSAM.KSDS
34//*
35//PRC001.FILEOUT DD DISP=(NEW,CATLG,DELETE),
36// UNIT=SYSDA,
37// DCB=(LRECL=50,RECFM=FB,BLKSIZE=0),
38// SPACE=(CYL,(1,1),RLSE),
39// DSN=AWS.M2.CARDDEMO.TCATBALF.BKUP(+1)
40//* *******************************************************************
41//* Filter the TCATBALFions for a the parm date and sort by card num
42//* *******************************************************************
43//STEP10R EXEC PGM=SORT
44//SORTIN DD DISP=SHR,
45// DSN=AWS.M2.CARDDEMO.TCATBALF.BKUP(+1)
46//SYMNAMES DD *
47TRANCAT-ACCT-ID,1,11,ZD
48TRANCAT-TYPE-CD,12,2,CH
49TRANCAT-CD,14,4,ZD
50TRAN-CAT-BAL,18,11,ZD
51//SYSIN DD *
52 SORT FIELDS=(TRANCAT-ACCT-ID,A,TRANCAT-TYPE-CD,A,TRANCAT-CD,A)
53 OUTREC FIELDS=(TRANCAT-ACCT-ID,X,
54 TRANCAT-TYPE-CD,X,
55 TRANCAT-CD,X,
56 TRAN-CAT-BAL,EDIT=(TTTTTTTTT.TT),9X)
57/*
58//SYSOUT DD SYSOUT=*
59//SORTOUT DD DISP=(NEW,CATLG,DELETE),
60// UNIT=SYSDA,
61// DCB=(LRECL=40,RECFM=FB,BLKSIZE=0),
62// SPACE=(CYL,(1,1),RLSE),
63// DSN=AWS.M2.CARDDEMO.TCATBALF.REPT
64//*
65//* Ver: CardDemo_v1.0-15-g27d6c6f-68 Date: 2022-07-19 23:23:06 CDT
66//*