-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgramaPrincipal.cbl
69 lines (49 loc) · 2.52 KB
/
ProgramaPrincipal.cbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$set sourceformat"free"
program-id. ProgramaPrincipal.
*>=================================================================================
*>
*> Gerenciador de Chamadas do Projeto
*>
*>=================================================================================
environment division.
configuration section.
special-names. decimal-point is comma.
*>=================================================================================
data division.
*>=================================================================================
working-storage section.
78 c-versao value "a".
78 c-este-programa value "ProgramaPrincipal".
78 c-frame-principal value "CS00000S".
78 c-controle-assincrono value "CS00001S".
01 ws-campos-trabalho.
03 ws-linha-commando pic x(500) value spaces.
copy CSL00900.cpy.
*>=================================================================================
procedure division.
*>=================================================================================
0000-controle section.
perform 1000-inicializacao
perform 2000-processamento
perform 3000-finalizacao.
0000-saida.
exit program
stop run
exit.
*>=================================================================================
1000-inicializacao section.
accept ws-linha-commando from command-line
exit.
*>=================================================================================
2000-processamento section.
if ws-linha-commando equal spaces
call c-frame-principal using lnk-par
cancel c-frame-principal
else
call c-controle-assincrono using lnk-par
cancel c-controle-assincrono
end-if
exit.
*>=================================================================================
3000-finalizacao section.
exit.