GDSX Manual

Using Pseudo Procedures in a NonStop TS/MP
Environment
Extended General Device Support (GDSX) Manual134303
D-16
DELETER Listing
191 Rewrite Tstdat-Rec With Unlock
192 If File-Error
193 Move I to Ok-Nmbr
194 Move 9999 to I
195 Move File-Stat-N to Out-Message-Loop
196 Move "Error rewriting tstdat" to Out-Message-Text
197 Else
198 Next Sentence
199 Else
200 Move I to Ok-Nmbr
201 Move 9999 to I
202 Move File-Stat-N to Out-Message-Loop
203 Move "Error writing tstdat" to Out-Message-Text.
204 *
205
***Eof**************************************************************************
DELETER Listing
5 Identification Division.
7 Program-Id. Deleter.
12
13 Environment Division.
14
15 Configuration Section.
16 Source-Computer. Tandem/16.
17 Object-Computer. Tandem/16.
18 Special-Names.
19 Myterm is Tout.
20
21 Input-Output Section.
22 File-Control.
23 *
24 Select Message-In Assign to $Receive
25 File Status is Receive-File-Status.
26 *
27 Select Message-Out Assign to $Receive
28 File Status is Receive-File-Status.
29 *
30 Select Tstdat Assign to File1
31 Organization is Indexed
32 Access Mode is Dynamic
33 Record Key is Tstdat-Key
34 File Status is File-Stat.
35
36 *
37 Receive-Control.
38 Table occurs 3 Times
39 Syncdepth limit is 1
40 Reply contains 64 Characters.
41
42 Data Division.
43
44 File Section.
45
46 FD Message-In
47 Label Records are omitted
48 Record contains 1 to 64 Characters.
49
50 01 In-Message.
51 05 In-Message-Reply-Code Pic 9(04) Comp.
52 05 In-Message-Function-Code Pic X(01).
53 05 In-Message-Key.
54 10 In-Message-Loop Pic 9(03).
55 10 In-Message-Key-1 Pic X(08).
56 05 In-Message-Text Pic X(50).
58
59 FD Message-Out
60 Label Records are omitted
61 Record contains 1 to 64 Characters.
62