MFmainframe-rea
WS carddemo · 26f629ef

cobol · 41 lines · sha256 38a8d28235e58509 · guides at columns 7 and 72app/cbl/COBSWAIT.cbl

1 ******************************************************************
2 * PROGRAM : COBSWAIT.CBL
3 * Application : CardDemo
4 * Type : BATCH COBOL Program
5 * FUNCTION : UTILITY PROGRAM TO WAIT (PARM IN CENTISECONDS)
6 ******************************************************************
7 * Copyright Amazon.com, Inc. or its affiliates.
8 * All Rights Reserved.
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License").
11 * You may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
19 * either express or implied. See the License for the specific
20 * language governing permissions and limitations under the License
21 ******************************************************************
22 IDENTIFICATION DIVISION. 00010000
23 PROGRAM-ID. COBSWAIT. 0002000
24 ENVIRONMENT DIVISION.
25 INPUT-OUTPUT SECTION. 00030000
26 DATA DIVISION. 00030900
27
28 WORKING-STORAGE SECTION.
29 *-----------------------------------------------------------------
30 01 MVSWAIT-TIME PIC 9(8) COMP.
31 01 PARM-VALUE PIC X(8).
32
33
34 PROCEDURE DIVISION. 00040000
35
36 ACCEPT PARM-VALUE FROM SYSIN.
37 MOVE PARM-VALUE TO MVSWAIT-TIME.
38 CALL 'MVSWAIT' USING MVSWAIT-TIME.
39
40 STOP RUN. 00060000
41