-
Notifications
You must be signed in to change notification settings - Fork 0
/
hchng.mem
5957 lines (4311 loc) · 233 KB
/
hchng.mem
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
************************************************************************
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* SYSTEM 1022 *
* *
* HOST LANGUAGE INTERFACE *
* *
* USER'S REFERENCE MANUAL *
* *
* FORTRAN *
* *
* COBOL *
* *
* MACRO *
* *
* *
* Revision 5, May 1986 *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* SOFTWARE HOUSE *
* *
* Cambridge, Massachusetts *
* *
* *
* *
* *
************************************************************************
Copyright 1986 by Software House. All rights reserved.
Software House, 1105 Massachusetts Avenue
Cambridge, Massachusetts 02138, USA
ISBN 0-912055-17-0
Printed in USA.
Revision 1: October 1980
Revision 2: October 1981
Revision 3: September 1983
Revision 4: June 1984
Revision 5: May 1986
To order any System 1022 documentation,
call or write to:
Documentation Distribution
Software House
1105 Massachusetts Avenue
Cambridge, MA 02138
USA
(617)661-7023
This manual reflects version 117B of System 1022. Changes since
Revision 4, June l984, are marked with bars in the left margin.
Please send any comments or suggestions about this manual to the
Software House Documentation Department.
Documentation Available for System 1022
Introductory Literature Kit____________ __________ ___
The Kit provides a cursory introduction to the System. Included in
the Kit are:
o A brief description of the major features in System 1022
o A copy of The Data Base, the System 1022 newsletter ___ ____ ____
o Two DATA DECISIONS reports which describe System 1022
and Software House
o The Price Schedule
User's Reference Manual______ _________ ______
The User's Reference Manual contains complete information about the
interactive use of System 1022. This is the primary documentation for
the System. This manual is available in both printed and
machine-readable form. 450 pages.
Host Language User's Reference Manual____ ________ ______ _________ ______
The Host Language (HL) Manual contains information needed to write and
run FORTRAN, COBOL, and MACRO application programs using the System
1022 subroutine library. This manual is available in both printed and
machine-readable form. 150 pages.
Data Base Administrator's Manual____ ____ _______________ ______
The Data Base Administrator's (DBA's) Manual explains to the data base
administrator how to install and maintain System 1022. The Manual
describes interfacing 1022 to host languages, patching, and control
features used by the DBA. The Manual is specific to the current
version of 1022. This manual is available in both printed and
machine-readable form. 100 pages.
Primer______
The Primer introduces the interactive use of System 1022 to the new
user. The Primer is available in printed form only. 140 pages.
Report Writer Manual: Operation and Examples______ ______ _______ _________ ___ ________
The Report Writer Manual contains a collection of reports and detailed
descriptions of each to illustrate how custom reports are written.
The Manual is available in both printed and machine-readable form. 50
pages.
CHAPTER 1 USING THE SYSTEM 1022 HOST LANGUAGE INTERFACE
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . 1-1
1.2 SUMMARY OF HOST LANGUAGE ROUTINES . . . . . . . . 1-2
1.3 I/O ERROR MESSAGES . . . . . . . . . . . . . . . . 1-5
1.4 I/O EFFICIENCY -- PMAP . . . . . . . . . . . . . . 1-6
CHAPTER 2 FORTRAN INTERFACE ROUTINES
2.1 RULES FOR USING THE FORTRAN INTERFACE . . . . . . 2-1
2.2 SUBROUTINE ARGUMENTS . . . . . . . . . . . . . . . 2-6
2.2.1 The ERRT. Option . . . . . . . . . . . . . . . . 2-7
2.3 TERMINATION OF ARGUMENT LISTS . . . . . . . . . . 2-8
2.4 VARIABLE ARGUMENT ARRAYS . . . . . . . . . . . . . 2-8
2.4.1 FIX. Option . . . . . . . . . . . . . . . . . . 2-8
2.4.2 PNT. Option . . . . . . . . . . . . . . . . . . 2-9
2.4.3 FXB. Option . . . . . . . . . . . . . . . . . 2-11
2.4.4 PTB. Option . . . . . . . . . . . . . . . . . 2-12
2.5 RUNTIME TYPE CONVERSIONS . . . . . . . . . . . . 2-14
2.6 INITIALIZATION ROUTINES . . . . . . . . . . . . 2-15
2.6.1 Initializing FORTRAN-10 Or FORTRAN-20 -- DBF6
And DBFOR . . . . . . . . . . . . . . . . . . 2-16
2.6.2 Initializing FORTRAN Version 10 With Extended
Sections -- DBFX . . . . . . . . . . . . . . . 2-16
2.6.3 Initializing FORTRAN-IV -- DBSTRT . . . . . . 2-16
2.6.4 Terminating System 1022 Processing -- DBEND . 2-17
2.7 DATA SET SELECTION ROUTINES . . . . . . . . . . 2-18
2.7.1 The OPEN Command -- DBOPEN . . . . . . . . . . 2-18
2.7.2 The CLOSE Command -- DBCLOS . . . . . . . . . 2-19
2.7.3 The DBSET Command -- DBSET . . . . . . . . . . 2-20
2.7.4 Data Set Numbers -- DBCSET And DBNSET . . . . 2-21
2.8 DATA SET INQUIRY ROUTINES . . . . . . . . . . . 2-21
2.8.1 The FIND Command -- DBFIND . . . . . . . . . . 2-21
2.8.1.1 Advanced DBFIND Features . . . . . . . . . . 2-24
2.8.2 The SAVE Command -- DBSAVE . . . . . . . . . . 2-25
2.8.3 The SEARCH Command -- DBSRCH . . . . . . . . . 2-26
2.8.4 The SELECT Command -- DBSEL . . . . . . . . . 2-26
2.8.5 The MAP Command -- DBMAP . . . . . . . . . . . 2-26
2.8.5.1 Example Of DBMAP . . . . . . . . . . . . . . 2-28
2.8.6 The Current Number Of Records -- DBNREC . . . 2-29
2.8.6.0.1 The GETREC Command -- DBGREC . . . . . . 2-29
2.8.7 The DROP Command -- DBDROP . . . . . . . . . . 2-30
2.8.8 The LET Command -- DBVAL . . . . . . . . . . . 2-30
2.8.9 Retrieving An Entire Record -- DBGET . . . . 2-31
2.8.9.0.1 The LOCK Command -- DBLOCK . . . . . . . 2-33
2.8.10 The STARTREC Command -- DBSREC . . . . . . . . 2-34
2.8.11 The SORT Command -- DBSORT . . . . . . . . . . 2-34A
2.8.12 The VALUES Command -- DBVALU . . . . . . . . . 2-34B
2.9 DATA SET UPDATE ROUTINES . . . . . . . . . . . . 2-36
2.9.1 The CHANGE Command -- DBCHNG . . . . . . . . . 2-36
2.9.2 The DELETE Command -- DBDEL . . . . . . . . . 2-38
2.9.3 The ADD Commands -- DBADD And DBADDR . . . . . 2-38
2.9.4 The UPDATE Command -- DBUPD . . . . . . . . . 2-39
2.9.5 The SET BUFFER Command -- DBBUF . . . . . . . 2-39
2.9.6 The ALLOCATE Command -- DBALLO . . . . . . . . 2-40
2.10 SPECIAL PURPOSE ROUTINES . . . . . . . . . . . . 2-40
2.10.1 The INFORM ATTRIBUTE Command -- DBINFO . . . . 2-40
2.10.2 The PERMIT Command -- DBPSWD . . . . . . . . . 2-42
2.10.3 The Number Of Attributes -- DBNATT . . . . . . 2-42
2.10.4 Resetting Internal Buffers -- DBCLR . . . . . 2-42
2.10.5 Error Handling Routines . . . . . . . . . . . 2-43
2.10.5.1 The DBERR Subroutine . . . . . . . . . . . . 2-43
2.10.5.2 The DBERRH Subroutine . . . . . . . . . . . 2-44
2.10.5.3 The DBRETN Subroutine . . . . . . . . . . . 2-46
2.10.5.4 The DBERRT Subroutine . . . . . . . . . . . 2-46
2.10.6 Converting System Dates -- DBNDAT And DBDATN . 2-47
2.10.7 Supplying Or Receiving System Variables --
DBSYSV . . . . . . . . . . . . . . . . . . . . 2-48
2.10.7.1 Value-passing With System Variables --
SYSUSER__ . . . . . . . . . . . . . . . . . 2-52
2.10.8 Executing Interactive Commands And Procedures
-- DBEXEC . . . . . . . . . . . . . . . . . . 2-52
2.10.9 Passing Records In Nonstandard Format To 1022
-- DBLODR . . . . . . . . . . . . . . . . . . 2-55
2.10.10 DBDBUG Routines . . . . . . . . . . . . . . . 2-57
2.10.11 The DBVAR Routine . . . . . . . . . . . . . . 2-58
2.11 AUDIT ROUTINES . . . . . . . . . . . . . . . . . 2-58
2.11.1 Starting The AUDIT Trail . . . . . . . . . . . 2-58
2.11.2 Writing AUDIT File Checkpoints . . . . . . . . 2-59
2.11.3 Custom AUDIT Entries . . . . . . . . . . . . . 2-59
2.11.4 Retrieving AUDIT File Information . . . . . . 2-59
2.11.5 Random Access Audit Trail Input . . . . . . . 2-64
2.11.6 Loading Programs Containing DBAxxx Calls . . . 2-65
2.11.7 Examples . . . . . . . . . . . . . . . . . . . 2-65
2.12 SAMPLE FORTRAN PROGRAMS . . . . . . . . . . . . 2-67
CHAPTER 3 COBOL INTERFACE
3.1 RULES FOR USING THE COBOL INTERFACE . . . . . . . 3-1
3.2 DATA TYPES . . . . . . . . . . . . . . . . . . . . 3-2
3.2.1 COBOL Over-Punch Characters . . . . . . . . . . 3-2
3.2.2 INTEGER Attributes . . . . . . . . . . . . . . . 3-3
3.2.3 REAL Attributes . . . . . . . . . . . . . . . . 3-4
3.2.4 TEXT Attributes . . . . . . . . . . . . . . . . 3-5
3.2.5 DATE Attributes . . . . . . . . . . . . . . . . 3-5
3.3 SUBROUTINE ARGUMENTS . . . . . . . . . . . . . . . 3-6
3.3.1 The ERRT. Option . . . . . . . . . . . . . . . . 3-7
3.4 SPECIAL RESTRICTIONS . . . . . . . . . . . . . . . 3-7
3.5 INITIALIZING COBOL -- DBCBL, DBC68, DBC74 . . . . 3-7
3.6 TERMINATING SYSTEM 1022 PROCESSING -- DBEND . . . 3-8
3.7 DATA SET SELECTION ROUTINES . . . . . . . . . . . 3-8
3.7.1 The OPEN Command -- DBOPEN . . . . . . . . . . . 3-8
3.7.2 The CLOSE Command -- DBCLOS . . . . . . . . . 3-10
3.7.3 The DBSET Command -- DBSET . . . . . . . . . . 3-10
3.7.4 Data Set Numbers -- DBCSET And DBNSET . . . . 3-11
3.8 DATA SET INQUIRY ROUTINES . . . . . . . . . . . 3-11
3.8.1 The FIND Command -- DBFIND . . . . . . . . . . 3-11
3.8.1.1 Suppression Of Trailing Spaces . . . . . . . 3-14
3.8.1.2 Advanced DBFIND Features . . . . . . . . . . 3-15
3.8.2 The SAVE Command -- DBSAVE . . . . . . . . . . 3-16
3.8.3 The SEARCH Command -- DBSRCH . . . . . . . . . 3-17
3.8.4 The SELECT Command -- DBSEL . . . . . . . . . 3-17
3.8.5 The MAP Command -- DBMAP . . . . . . . . . . . 3-18
3.8.5.1 Example Of DBMAP . . . . . . . . . . . . . . 3-20
3.8.6 The Current Number Of Records -- DBNREC . . . 3-20
3.8.6.0.1 The GETREC Command -- DBGREC . . . . . . 3-20
3.8.7 The DROP Command -- DBDROP . . . . . . . . . . 3-21
3.8.8 The LET Command -- DBVAL . . . . . . . . . . . 3-22
3.8.9 Standard Record Format . . . . . . . . . . . . 3-22
3.8.10 Retrieving An Entire Record -- DBGET . . . . 3-24A
3.8.10.0.1 The LOCK Command -- DBLOCK . . . . . . . 3-24A
3.8.11 The STARTREC Command -- DBSREC . . . . . . . . 3-24C
3.8.12 The SORT Command -- DBSORT . . . . . . . . . . 3-24C
3.8.13 The VALUES Command -- DBVALU . . . . . . . . . 3-25
3.9 DATA SET UPDATE ROUTINES . . . . . . . . . . . . 3-28
3.9.1 The CHANGE Command-- DBCHNG . . . . . . . . . 3-28
3.9.2 The DELETE Command -- DBDEL . . . . . . . . . 3-30
3.9.3 The ADD Command -- DBADD And DBADDR . . . . . 3-30
3.9.4 The UPDATE Command -- DBUPD . . . . . . . . . 3-31
3.9.5 The SET BUFFER Command -- DBBUF . . . . . . . 3-31
3.9.6 The ALLOCATE Command -- DBALLO . . . . . . . . 3-32
3.10 SPECIAL PURPOSE ROUTINES . . . . . . . . . . . . 3-32
3.10.1 The INFORM ATTRIBUTE Command -- DBINFO . . . . 3-32
3.10.1.1 Attribute Numbers . . . . . . . . . . . . . 3-34
3.10.2 The PERMIT Command -- DBPSWD . . . . . . . . . 3-34
3.10.3 The Number Of Attributes -- DBNATT . . . . . . 3-35
3.10.4 Resetting Internal Buffers -- DBCLR . . . . . 3-35
3.10.5 Error Handling Routines . . . . . . . . . . . 3-36
3.10.5.1 The DBERR Subroutine . . . . . . . . . . . . 3-36
3.10.5.2 The DBERRH Subroutine . . . . . . . . . . . 3-37
3.10.5.3 The DBRETN Subroutine . . . . . . . . . . . 3-38
3.10.5.4 The DBERRT Subroutine . . . . . . . . . . . 3-39
3.10.6 Converting System 1022 Dates -- DBNDAT And
DBDATN . . . . . . . . . . . . . . . . . . . . 3-40
3.10.7 Supplying Or Receiving System Variables --
DBSYSV . . . . . . . . . . . . . . . . . . . . 3-40
3.10.7.1 Value-passing With System Variables --
SYSUSER__ . . . . . . . . . . . . . . . . . 3-45
3.10.8 Executing Interactive Commands And Procedures
-- DBEXEC . . . . . . . . . . . . . . . . . . 3-45
3.10.9 Passing Records In Nonstandard Format To 1022
-- DBLODR . . . . . . . . . . . . . . . . . . 3-48A
3.10.10 DBDBUG Routine . . . . . . . . . . . . . . . . 3-48C
3.10.11 The DBVAR Routine . . . . . . . . . . . . . . 3-48D
3.11 AUDIT ROUTINES . . . . . . . . . . . . . . . . . 3-48D
3.11.1 Starting The AUDIT Trail . . . . . . . . . . . 3-48E
3.11.2 Entering AUDIT File Checkpoints . . . . . . . 3-48E
3.11.3 Custom AUDIT Entries . . . . . . . . . . . . . 3-48E
3.11.4 Retrieving AUDIT File Information . . . . . . 3-49
3.11.4.1 Initialization For AUDIT Retrievals . . . . 3-49
3.11.4.2 Random Access AUDIT Trail Input . . . . . . 3-54
3.11.5 Loading Programs Using DBAxxx Routines . . . . 3-55
3.11.6 Examples . . . . . . . . . . . . . . . . . . . 3-56
3.12 SAMPLE COBOL PROGRAMS . . . . . . . . . . . . . 3-58
CHAPTER 4 THE SYSTEM 1022 MACRO INTERFACE
4.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . 4-1
4.2 SUBROUTINE LINKAGE . . . . . . . . . . . . . . . . 4-2
4.3 INITIALIZATION . . . . . . . . . . . . . . . . . . 4-3
4.4 MEMORY MANAGEMENT . . . . . . . . . . . . . . . . 4-3
4.4.1 Allocating Dynamic Arrays . . . . . . . . . . . 4-4
4.5 I/O MANAGEMENT . . . . . . . . . . . . . . . . . . 4-5
4.6 LOADING MACRO PROGRAMS . . . . . . . . . . . . . . 4-5
4.7 SUMMARY . . . . . . . . . . . . . . . . . . . . . 4-6
4.8 EXAMPLE MACRO PROGRAM . . . . . . . . . . . . . . 4-7
4.9 THE S1022$ MACRO DEFINITION . . . . . . . . . . 4-10
4.10 EXAMPLE PROGRAM USING S1022$ . . . . . . . . . . 4-12
4.11 USERCALL . . . . . . . . . . . . . . . . . . . . 4-13
4.11.1 Calling Conventions . . . . . . . . . . . . . 4-14
4.11.1.1 Calling Sequence . . . . . . . . . . . . . . 4-14
4.11.1.2 Parameters . . . . . . . . . . . . . . . . . 4-14
4.11.1.3 Conversions . . . . . . . . . . . . . . . . 4-15
4.11.2 Loading Conventions (TOPS-20) . . . . . . . . 4-16
4.11.3 Configuring The MACRO Library As A Host
Language Program . . . . . . . . . . . . . . . 4-17
4.11.4 Example USERCALL Routine . . . . . . . . . . . 4-17
APPENDIX A HOST LANGUAGE ERROR MESSAGES
APPENDIX B DATE REPRESENTATIONS
B.1 RADIX DATE FORM . . . . . . . . . . . . . . . . . B-1
B.2 SYSTEM 1022 ENCODED DATE . . . . . . . . . . . . . B-1
B.3 UNIVERSAL DATE-TIME FORMAT . . . . . . . . . . . . B-1
APPENDIX C OTHER HOST LANGUAGES
C.1 REQUIREMENTS . . . . . . . . . . . . . . . . . . . C-1
C.2 INITIALIZATION . . . . . . . . . . . . . . . . . . C-1
C.3 CORE MANAGEMENT . . . . . . . . . . . . . . . . . C-2
C.4 CHANNEL MANAGEMENT . . . . . . . . . . . . . . . . C-2
C.5 EXAMPLES: DBMAC, DBCORE, DBCHAN . . . . . . . . . C-3
C.6 ARGUMENTS -- XGARG. . . . . . . . . . . . . . . . C-4
C.6.1 XGARG. Call . . . . . . . . . . . . . . . . . . C-4
C.6.2 GARGL. Definition . . . . . . . . . . . . . . . C-5
C.6.3 Requirements Of XGARG. . . . . . . . . . . . . . C-6
C.6.4 Example: XGARG. . . . . . . . . . . . . . . . . C-7
CHAPTER 1 USING THE SYSTEM 1022 HOST LANGUAGE INTERFACE
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . 1-1
1.2 SUMMARY OF HOST LANGUAGE ROUTINES . . . . . . . . 1-2
1.3 I/O ERROR MESSAGES . . . . . . . . . . . . . . . . 1-5
1.4 I/O EFFICIENCY -- PMAP . . . . . . . . . . . . . . 1-6
CHAPTER 2 FORTRAN INTERFACE ROUTINES
2.1 RULES FOR USING THE FORTRAN INTERFACE . . . . . . 2-1
2.2 SUBROUTINE ARGUMENTS . . . . . . . . . . . . . . . 2-6
2.2.1 The ERRT. Option . . . . . . . . . . . . . . . . 2-7
2.3 TERMINATION OF ARGUMENT LISTS . . . . . . . . . . 2-8
2.4 VARIABLE ARGUMENT ARRAYS . . . . . . . . . . . . . 2-8
2.4.1 FIX. Option . . . . . . . . . . . . . . . . . . 2-8
2.4.2 PNT. Option . . . . . . . . . . . . . . . . . . 2-9
2.4.3 FXB. Option . . . . . . . . . . . . . . . . . 2-11
2.4.4 PTB. Option . . . . . . . . . . . . . . . . . 2-12
2.5 RUNTIME TYPE CONVERSIONS . . . . . . . . . . . . 2-14
2.6 INITIALIZATION ROUTINES . . . . . . . . . . . . 2-15
2.6.1 Initializing FORTRAN-10 Or FORTRAN-20 -- DBF6
And DBFOR . . . . . . . . . . . . . . . . . . 2-16
2.6.2 Initializing FORTRAN Version 10 With Extended
Sections -- DBFX . . . . . . . . . . . . . . . 2-16
2.6.3 Initializing FORTRAN-IV -- DBSTRT . . . . . . 2-16
2.6.4 Terminating System 1022 Processing -- DBEND . 2-17
2.7 DATA SET SELECTION ROUTINES . . . . . . . . . . 2-18
2.7.1 The OPEN Command -- DBOPEN . . . . . . . . . . 2-18
2.7.2 The CLOSE Command -- DBCLOS . . . . . . . . . 2-19
2.7.3 The DBSET Command -- DBSET . . . . . . . . . . 2-20
2.7.4 Data Set Numbers -- DBCSET And DBNSET . . . . 2-21
2.8 DATA SET INQUIRY ROUTINES . . . . . . . . . . . 2-21
2.8.1 The FIND Command -- DBFIND . . . . . . . . . . 2-21
2.8.1.1 Advanced DBFIND Features . . . . . . . . . . 2-24
2.8.2 The SAVE Command -- DBSAVE . . . . . . . . . . 2-25
2.8.3 The SEARCH Command -- DBSRCH . . . . . . . . . 2-26
2.8.4 The SELECT Command -- DBSEL . . . . . . . . . 2-26
2.8.5 The MAP Command -- DBMAP . . . . . . . . . . . 2-26
2.8.5.1 Example Of DBMAP . . . . . . . . . . . . . . 2-28
2.8.6 The Current Number Of Records -- DBNREC . . . 2-29
2.8.6.0.1 The GETREC Command -- DBGREC . . . . . . 2-29
2.8.7 The DROP Command -- DBDROP . . . . . . . . . . 2-30
2.8.8 The LET Command -- DBVAL . . . . . . . . . . . 2-30
2.8.9 Retrieving An Entire Record -- DBGET . . . . 2-31
2.8.9.0.1 The LOCK Command -- DBLOCK . . . . . . . 2-33
2.8.10 The STARTREC Command -- DBSREC . . . . . . . . 2-34
2.8.11 The SORT Command -- DBSORT . . . . . . . . . . 2-34A
2.8.12 The VALUES Command -- DBVALU . . . . . . . . . 2-34B
2.9 DATA SET UPDATE ROUTINES . . . . . . . . . . . . 2-36
2.9.1 The CHANGE Command -- DBCHNG . . . . . . . . . 2-36
2.9.2 The DELETE Command -- DBDEL . . . . . . . . . 2-38
2.9.3 The ADD Commands -- DBADD And DBADDR . . . . . 2-38
2.9.4 The UPDATE Command -- DBUPD . . . . . . . . . 2-39
2.9.5 The SET BUFFER Command -- DBBUF . . . . . . . 2-39
Page 2
2.9.6 The ALLOCATE Command -- DBALLO . . . . . . . . 2-40
2.10 SPECIAL PURPOSE ROUTINES . . . . . . . . . . . . 2-40
2.10.1 The INFORM ATTRIBUTE Command -- DBINFO . . . . 2-40
2.10.2 The PERMIT Command -- DBPSWD . . . . . . . . . 2-42
2.10.3 The Number Of Attributes -- DBNATT . . . . . . 2-42
2.10.4 Resetting Internal Buffers -- DBCLR . . . . . 2-42
2.10.5 Error Handling Routines . . . . . . . . . . . 2-43
2.10.5.1 The DBERR Subroutine . . . . . . . . . . . . 2-43
2.10.5.2 The DBERRH Subroutine . . . . . . . . . . . 2-44
2.10.5.3 The DBRETN Subroutine . . . . . . . . . . . 2-46
2.10.5.4 The DBERRT Subroutine . . . . . . . . . . . 2-46
2.10.6 Converting System Dates -- DBNDAT And DBDATN . 2-47
2.10.7 Supplying Or Receiving System Variables --
DBSYSV . . . . . . . . . . . . . . . . . . . . 2-48
2.10.7.1 Value-passing With System Variables --
SYSUSER__ . . . . . . . . . . . . . . . . . 2-52
2.10.8 Executing Interactive Commands And Procedures
-- DBEXEC . . . . . . . . . . . . . . . . . . 2-52
2.10.9 Passing Records In Nonstandard Format To 1022
-- DBLODR . . . . . . . . . . . . . . . . . . 2-55
2.10.10 DBDBUG Routines . . . . . . . . . . . . . . . 2-57
2.10.11 The DBVAR Routine . . . . . . . . . . . . . . 2-58
2.11 AUDIT ROUTINES . . . . . . . . . . . . . . . . . 2-58
2.11.1 Starting The AUDIT Trail . . . . . . . . . . . 2-58
2.11.2 Writing AUDIT File Checkpoints . . . . . . . . 2-59
2.11.3 Custom AUDIT Entries . . . . . . . . . . . . . 2-59
2.11.4 Retrieving AUDIT File Information . . . . . . 2-59
2.11.5 Random Access Audit Trail Input . . . . . . . 2-64
2.11.6 Loading Programs Containing DBAxxx Calls . . . 2-65
2.11.7 Examples . . . . . . . . . . . . . . . . . . . 2-65
2.12 SAMPLE FORTRAN PROGRAMS . . . . . . . . . . . . 2-67
CHAPTER 3 COBOL INTERFACE
3.1 RULES FOR USING THE COBOL INTERFACE . . . . . . . 3-1
3.2 DATA TYPES . . . . . . . . . . . . . . . . . . . . 3-2
3.2.1 COBOL Over-Punch Characters . . . . . . . . . . 3-2
3.2.2 INTEGER Attributes . . . . . . . . . . . . . . . 3-3
3.2.3 REAL Attributes . . . . . . . . . . . . . . . . 3-4
3.2.4 TEXT Attributes . . . . . . . . . . . . . . . . 3-5
3.2.5 DATE Attributes . . . . . . . . . . . . . . . . 3-5
3.3 SUBROUTINE ARGUMENTS . . . . . . . . . . . . . . . 3-6
3.3.1 The ERRT. Option . . . . . . . . . . . . . . . . 3-7
3.4 SPECIAL RESTRICTIONS . . . . . . . . . . . . . . . 3-7
3.5 INITIALIZING COBOL -- DBCBL, DBC68, DBC74 . . . . 3-7
3.6 TERMINATING SYSTEM 1022 PROCESSING -- DBEND . . . 3-8
3.7 DATA SET SELECTION ROUTINES . . . . . . . . . . . 3-8
3.7.1 The OPEN Command -- DBOPEN . . . . . . . . . . . 3-8
3.7.2 The CLOSE Command -- DBCLOS . . . . . . . . . 3-10
3.7.3 The DBSET Command -- DBSET . . . . . . . . . . 3-10
3.7.4 Data Set Numbers -- DBCSET And DBNSET . . . . 3-11
3.8 DATA SET INQUIRY ROUTINES . . . . . . . . . . . 3-11
3.8.1 The FIND Command -- DBFIND . . . . . . . . . . 3-11
3.8.1.1 Suppression Of Trailing Spaces . . . . . . . 3-14
Page 3
3.8.1.2 Advanced DBFIND Features . . . . . . . . . . 3-15
3.8.2 The SAVE Command -- DBSAVE . . . . . . . . . . 3-16
3.8.3 The SEARCH Command -- DBSRCH . . . . . . . . . 3-17
3.8.4 The SELECT Command -- DBSEL . . . . . . . . . 3-17
3.8.5 The MAP Command -- DBMAP . . . . . . . . . . . 3-18
3.8.5.1 Example Of DBMAP . . . . . . . . . . . . . . 3-20
3.8.6 The Current Number Of Records -- DBNREC . . . 3-20
3.8.6.0.1 The GETREC Command -- DBGREC . . . . . . 3-20
3.8.7 The DROP Command -- DBDROP . . . . . . . . . . 3-21
3.8.8 The LET Command -- DBVAL . . . . . . . . . . . 3-22
3.8.9 Standard Record Format . . . . . . . . . . . . 3-22
3.8.10 Retrieving An Entire Record -- DBGET . . . . 3-24A
3.8.10.0.1 The LOCK Command -- DBLOCK . . . . . . . 3-24A
3.8.11 The STARTREC Command -- DBSREC . . . . . . . . 3-24C
3.8.12 The SORT Command -- DBSORT . . . . . . . . . . 3-24C
3.8.13 The VALUES Command -- DBVALU . . . . . . . . . 3-25
3.9 DATA SET UPDATE ROUTINES . . . . . . . . . . . . 3-28
3.9.1 The CHANGE Command-- DBCHNG . . . . . . . . . 3-28
3.9.2 The DELETE Command -- DBDEL . . . . . . . . . 3-30
3.9.3 The ADD Command -- DBADD And DBADDR . . . . . 3-30
3.9.4 The UPDATE Command -- DBUPD . . . . . . . . . 3-31
3.9.5 The SET BUFFER Command -- DBBUF . . . . . . . 3-31
3.9.6 The ALLOCATE Command -- DBALLO . . . . . . . . 3-32
3.10 SPECIAL PURPOSE ROUTINES . . . . . . . . . . . . 3-32
3.10.1 The INFORM ATTRIBUTE Command -- DBINFO . . . . 3-32
3.10.1.1 Attribute Numbers . . . . . . . . . . . . . 3-34
3.10.2 The PERMIT Command -- DBPSWD . . . . . . . . . 3-34
3.10.3 The Number Of Attributes -- DBNATT . . . . . . 3-35
3.10.4 Resetting Internal Buffers -- DBCLR . . . . . 3-35
3.10.5 Error Handling Routines . . . . . . . . . . . 3-36
3.10.5.1 The DBERR Subroutine . . . . . . . . . . . . 3-36
3.10.5.2 The DBERRH Subroutine . . . . . . . . . . . 3-37
3.10.5.3 The DBRETN Subroutine . . . . . . . . . . . 3-38
3.10.5.4 The DBERRT Subroutine . . . . . . . . . . . 3-39
3.10.6 Converting System 1022 Dates -- DBNDAT And
DBDATN . . . . . . . . . . . . . . . . . . . . 3-40
3.10.7 Supplying Or Receiving System Variables --
DBSYSV . . . . . . . . . . . . . . . . . . . . 3-40
3.10.7.1 Value-passing With System Variables --
SYSUSER__ . . . . . . . . . . . . . . . . . 3-45
3.10.8 Executing Interactive Commands And Procedures
-- DBEXEC . . . . . . . . . . . . . . . . . . 3-45
3.10.9 Passing Records In Nonstandard Format To 1022
-- DBLODR . . . . . . . . . . . . . . . . . . 3-48A
3.10.10 DBDBUG Routine . . . . . . . . . . . . . . . . 3-48C
3.10.11 The DBVAR Routine . . . . . . . . . . . . . . 3-48D
3.11 AUDIT ROUTINES . . . . . . . . . . . . . . . . . 3-48D
3.11.1 Starting The AUDIT Trail . . . . . . . . . . . 3-48E
3.11.2 Entering AUDIT File Checkpoints . . . . . . . 3-48E
3.11.3 Custom AUDIT Entries . . . . . . . . . . . . . 3-48E
3.11.4 Retrieving AUDIT File Information . . . . . . 3-49
3.11.4.1 Initialization For AUDIT Retrievals . . . . 3-49
3.11.4.2 Random Access AUDIT Trail Input . . . . . . 3-54
3.11.5 Loading Programs Using DBAxxx Routines . . . . 3-55
3.11.6 Examples . . . . . . . . . . . . . . . . . . . 3-56
Page 4
3.12 SAMPLE COBOL PROGRAMS . . . . . . . . . . . . . 3-58
CHAPTER 4 THE SYSTEM 1022 MACRO INTERFACE
4.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . 4-1
4.2 SUBROUTINE LINKAGE . . . . . . . . . . . . . . . . 4-2
4.3 INITIALIZATION . . . . . . . . . . . . . . . . . . 4-3
4.4 MEMORY MANAGEMENT . . . . . . . . . . . . . . . . 4-3
4.4.1 Allocating Dynamic Arrays . . . . . . . . . . . 4-4
4.5 I/O MANAGEMENT . . . . . . . . . . . . . . . . . . 4-5
4.6 LOADING MACRO PROGRAMS . . . . . . . . . . . . . . 4-5
4.7 SUMMARY . . . . . . . . . . . . . . . . . . . . . 4-6
4.8 EXAMPLE MACRO PROGRAM . . . . . . . . . . . . . . 4-7
4.9 THE S1022$ MACRO DEFINITION . . . . . . . . . . 4-10
4.10 EXAMPLE PROGRAM USING S1022$ . . . . . . . . . . 4-12
4.11 USERCALL . . . . . . . . . . . . . . . . . . . . 4-13
4.11.1 Calling Conventions . . . . . . . . . . . . . 4-14
4.11.1.1 Calling Sequence . . . . . . . . . . . . . . 4-14
4.11.1.2 Parameters . . . . . . . . . . . . . . . . . 4-14
4.11.1.3 Conversions . . . . . . . . . . . . . . . . 4-15
4.11.2 Loading Conventions (TOPS-20) . . . . . . . . 4-16
4.11.3 Configuring The MACRO Library As A Host
Language Program . . . . . . . . . . . . . . . 4-17
4.11.4 Example USERCALL Routine . . . . . . . . . . . 4-17
APPENDIX A HOST LANGUAGE ERROR MESSAGES
APPENDIX B DATE REPRESENTATIONS
B.1 RADIX DATE FORM . . . . . . . . . . . . . . . . . B-1
B.2 SYSTEM 1022 ENCODED DATE . . . . . . . . . . . . . B-1
B.3 UNIVERSAL DATE-TIME FORMAT . . . . . . . . . . . . B-1
APPENDIX C OTHER HOST LANGUAGES
C.1 REQUIREMENTS . . . . . . . . . . . . . . . . . . . C-1
C.2 INITIALIZATION . . . . . . . . . . . . . . . . . . C-1
C.3 CORE MANAGEMENT . . . . . . . . . . . . . . . . . C-2
C.4 CHANNEL MANAGEMENT . . . . . . . . . . . . . . . . C-2
C.5 EXAMPLES: DBMAC, DBCORE, DBCHAN . . . . . . . . . C-3
C.6 ARGUMENTS -- XGARG. . . . . . . . . . . . . . . . C-4
C.6.1 XGARG. Call . . . . . . . . . . . . . . . . . . C-4
C.6.2 GARGL. Definition . . . . . . . . . . . . . . . C-5
C.6.3 Requirements Of XGARG. . . . . . . . . . . . . . C-6
C.6.4 Example: XGARG. . . . . . . . . . . . . . . . . C-7
USING THE SYSTEM 1022 HOST LANGUAGE INTERFACE Page 1-7
Revision 4
Table: Buffer Defaults, Systems without Extended Sections
Pages(decimal) First Page(octal) Last Page(octal)
| COBOL 16 670 677
FORTRAN 32 600 637
MACRO 32 600 637
Stand Alone 32 600 637
You may specify different buffers for PMAP use with the FPAG., LPAG.,
and XPAG. initialization arguments. FPAG. and LPAG. specify the first
and last pages of the buffer. They are used to tune performance in
systems without extended section buffers. For example,
DBFOR('FPAG.',"600,'LPAG.',"677)
This defines a 64 page buffer between pages 600 and 677 (octal).
XPAG. specifies the number of pages of buffer. XPAG. is used in
systems with extended section buffers; specifying location is not
necessary. For example,
DBCBL USING "XPAG.","100"
Whether you specify or use the default buffers, be certain you are not
using this memory for other purposes.
When PMAP arguments and NOSETNAME (see SYSHLNAME in the DBA Manual)
are specified in the initialization call, NOSETNAME must be first.
For example,
DBFOR('NOSETNAME','XPAG.',100)
USING THE SYSTEM 1022 HOST LANGUAGE INTERFACE Page 1-8
Revision 4
FORTRAN INTERFACE ROUTINES Page 2-15
Revision 5
For example, consider the following calls:
CALL DBVAL ('AGE', IAGE)
IAGE receives the value of AGE in the current mode as set by
SYSHLMODE. This statement works properly only when AGE is in
a bundled data set, or when SYSHLMODE is set for binary
numeric, because the variable IAGE is a single word integer.
CALL DBVAL ('DISP.', 'AGE', IARRAY)
IARRAY receives the value of AGE in display form, regardless
of global flag settings.
CALL DBVAL ('BIN.', 'AGE', IAGE, 'SALARY', ISAL)
The integer variable IAGE receives the binary value of AGE
regardless of its form in the data set, or of the setting of
SYSHLMODE. The effect of 'BIN.' stops with AGE; SALARY is
received according to SYSHLMODE.
The default settings of SYSHLDISP and SYSHLMODE usually make the above
keywords unnecessary. DISPLAY-7 (ASCII) is the default text mode, and
binary is the default numeric mode. FORTRAN applications will work
consistently regardless of the form of the data set, whether bundled
or unbundled. The keywords 'DISP.' and 'BIN.' are useful in
applications which access any data set.
Values are passed following these data type conversion rules in the
following routines: DBADD, DBADDR, DBCHNG, DBFIND, DBSEL, DBSRCH,
DBSYSV, and DBVAL. No automatic conversions are made in other
routines.
2.6 INITIALIZATION ROUTINES
1022 accepts FORTRAN-10, FORTRAN-20, or FORTRAN-IV programs. The
initial call starts 1022, and specifies which language and FORTRAN
object time system are used. The initial CALLs are:
DBF6 When the FORTRAN-10 or FORTRAN-20 compiler and the
| FOROTS object time system are used with FORTRAN version
| 6 or later.
|
| DBFOR When the FORTRAN-10 or FORTRAN-20 compiler and FOROTS
| object time system are used with FORTRAN-5. At some
| sites, DBFOR may also be used interchangeably with DBF6
| to initialize programs in FORTRAN version 6 or later.
Consult your System Administrator to determine if yours
is such a site.
At all sites, DBF10 may be used interchangeably with
DBFOR. DBF10 is simply the old name for DBFOR.
FORTRAN INTERFACE ROUTINES Page 2-16
Revision 5
| DBFX When the FORTRAN-20 compiler is used with FORTRAN
| version 10 to run programs that make use of extended
| sections.
DBSTRT When the older F40 compiler and FORSE object time
system are used.
| The call to DBF6, DBFOR, DBFX, or DBSTRT is made before any other
System calls. After all System 1022 activity is finished in a
program, a call to DBEND performs any cleanup needed by 1022. After a
| call to DBEND, another call to DBF6, DBFOR, DBFX, or DBSTRT restarts
1022.
2.6.1 Initializing FORTRAN-10 Or FORTRAN-20 -- DBF6 And DBFOR
Initialize the FORTRAN-10 or FORTRAN-20 interface by a CALL to the
DBF6 routine if you are running FORTRAN-6 or FORTRAN-7:
CALL DBF6
If you are running FORTRAN-5 or if the Data Base Administrator at your
site has installed 1022 in such a way as to allow DBFOR to be used
interchangeably with DBF6, initialize the FORTRAN-10 or FORTRAN-20
interface by a CALL to DBFOR:
CALL DBFOR
|
|
|
| 2.6.2 Initializing FORTRAN Version 10 With Extended Sections -- DBFX
|
| Initialize the FORTRAN-20 interface by a CALL to the DBFX routine if
| you are running FORTRAN version 10 and your applications make use of
| extended addressing mode:
|
| CALL DBFX
|
| To use extended sections with System 1022, you must load with HR1022.
| System 1022 reserves sections 0 and 36 for its own use.
2.6.3 Initializing FORTRAN-IV -- DBSTRT
Initialize the FORTRAN-IV interface by a CALL to the DBSTRT routine:
CALL DBSTRT(IUNIT1,ICODE1, IUNIT2,ICODE2,...)
This initializes 1022 and reserves space for FORTRAN devices. Each
FORTRAN logical unit number to be used later in the program must be
represented in the call. The parameters are:
FORTRAN INTERFACE ROUTINES Page 2-17
Revision 5
1. IUNIT1 - A FORTRAN logical unit number which will be
used in the FORTRAN program.
2. ICODE1 - 0 - The unit is used only for input.
1 - The unit is used only for output.
-1 - The unit is used for input and output.
3. IUNIT2 - Additional unit number(s) to be used by the
FORTRAN program, accompanied by corresponding
ICODE(s). The program must represent all I/O
devices by a pair of IUNIT and ICODE arguments
in the CALL to DBSTRT.
No harm is done by reserving more unit numbers than the program uses,
or by specifying -1 (input/output) for a unit used for input or output
only. The effect is to reserve more memory than needed for I/O
operations.
If the following FORTRAN statements are used in the program, the
specified unit numbers must be given:
Statement Unit Number
TYPE -1
PUNCH -2
PRINT -3
ACCEPT -4
READ -5
Example:
CALL DBSTRT(1,-1,-4,0,-1,1)
The program initializes System 1022. The program uses unit 1 for
input and output, as well as ACCEPT and TYPE statements.
2.6.4 Terminating System 1022 Processing -- DBEND
Terminate System processing by a CALL to the DBEND routine:
CALL DBEND
Use the DBEND routine in the FORTRAN program after all data base
operations are completed. It closes all data sets and performs
cleanup operations such as releasing memory.
FORTRAN INTERFACE ROUTINES Page 2-18
Revision 5
2.7 DATA SET SELECTION ROUTINES
These routines select data sets for later operations. The routines
parallel the interactive commands described in the section Choosing
the Data set in the User's Reference Manual.
2.7.1 The OPEN Command -- DBOPEN
The DBOPEN routine connects the program to one or more data sets. The
CALL is:
| CALL DBOPEN(['NOCLOSE',] [DS1,'IN',] IDS1 [,'PASSWORD',password]
|
| { 'READONLY' }
| [,'ACCESS' { }] [,'AS',alias]
| { 'RO' }
|
| [ [,DS2,'IN'],IDS2... ])
Each DSn is a data set name and each IDSn is a file-descriptor which
names a data set file. All of the named data sets are opened
simultaneously, for later access using the DBSET routine. Previously
open data sets are closed unless the NOCLOSE keyword is used. All
data sets in a file are opened when no data set name is provided in an
"IN" clause of an OPEN command.
Example: CALL DBOPEN ('DSB', 'IN', 'TEST', 'INVNT')
We assume that the file TEST.DMS contains the two data sets DSA
and DSB, and that the file INVNT.DMS contains the data sets PARTS
and ORDER. The above call opens the data sets DSB, PARTS, and
ORDER at the same time. Each data set is assigned a "data set
number" starting from 1 in the order that it is opened. Thus,
DSB is data set #1, PARTS is data set #2, and ORDER is data set
#3. These numbers can be used in DBSET and other routines to
select the current data set from among the open data sets.
If the first argument to DBOPEN is the keyword 'NOCLOSE', then any
data sets already open will remain open. The new data set numbers are
assigned starting one greater than the highest data set number already
assigned, except NOCLOSE first assigns any data set numbers left
available by data sets that were closed (see DBCLOS).
Each DSn is a text string containing the data set name as used in the
interactive System.
Each IDSn file-descriptor is a text string naming the file, like a
file-descriptor in the interactive System. Parts of the descriptor
may be omitted, and default to device DSK and the current disk area.
FORTRAN INTERFACE ROUTINES Page 2-19
Revision 5
| If a password is required to open a data set, use the 'PASSWORD'
| clause in the call, following the file-descriptor to which it refers:
|
| For example:
|
| CALL DBOPEN('ACCTS','PASSWORD','ABC','INVNT')
|
| This opens both the data set ACCTS.DMS, for which the password ABC is
| required, and the unprotected data set INVNT.DMS. The keyword
| PASSWORD may be abbreviated PASSW.
|
| You can open a data set in readonly mode with the ACCESS READONLY
| clause of the DBOPEN call.
|
| For example:
|
| CALL DBOPEN('ACCTS','PASSWORD','ABC','ACCESS','READONLY')
|
| This opens the password-protected data set ACCTS in readonly mode.
| The keyword READONLY may be abbreviated RO.
|
| As in stand-alone 1022, you can assign an alias to a data set when you
| open it. An alias may be up to 25 characters long. It may not be the
| same as the internal name or alias of any other open data set,
| including any named in the DBOPEN call.
|
| For example:
|
| CALL DBOPEN('PARTS','IN','INVNT','AS','OLD')
|
| This opens the data set PARTS in the file INVNT.DMS with the alias
| OLD.
2.7.2 The CLOSE Command -- DBCLOS
This CALL is:
CALL DBCLOS
This routine closes the current data set. A single, open data set is
always the current one. When a data set is closed, its contents are
unavailable for retrieval or modification until it is opened again.
Also, its data set number is available for reassignment to a different
data set on a later call to DBOPEN with the NOCLOSE option.
The lowest numbered data set remaining open becomes the current data
set after a DBCLOS.
FORTRAN INTERFACE ROUTINES Page 2-20
Revision 5
2.7.3 The DBSET Command -- DBSET
At any instant, one data set is the current one. The current data set
is initially determined by the actions of DBOPEN, DBCLOS, and DBMAP.
Change the current data set by a call to DBSET:
CALL DBSET(DSN)