Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
IBM Manuals
Computer Hardware
5280
Programmer's manual
IBM 5280 Programmer's Manual
Distributed data system, cobol
Hide thumbs
Also See for 5280
:
Manual
(292 pages)
,
Technical newsletter
(178 pages)
,
User's setup manual
(169 pages)
1
2
3
4
5
6
7
Table Of Contents
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
page
of
187
Go
/
187
Contents
Table of Contents
Bookmarks
Table of Contents
Before Using this Guide
Objectives of the Guide
Writing a Work Station Application
Data Communications
Diskette I/O
Printer and Other I/O
Compiling a COBOL Program on the Host System
Executing a COBOL Program on an IBM 5280 System
Debugging COBOL Programs
Organization of the Guide
Scope of the Guide
To the COBOL Programmer
Related Publications
References for Coding and Debugging COBOL Programs
Coding Aids for Transaction I/O
References for Executing a COBOL Program
General References for IBM 5280 System Information
Compilation under Os/Vsl
Compilation under OS/VS2
Compilation under DOS/VSE
Table of Contents
Chapter 1 Transaction I/O - Introduction
Steps in Writing an Interactive Program
Figure 1.1. Steps in Preparing and Compiling Display Screen Formats
Command and Function Key Codes
Figure 1.2 the Data Entry Keyboard
The Keyboard
Figure 1.3. COBOL Command Keys and Codes for Data Entry Keyboards
Figure 1.4. COBOL Command Keys and Codes for Typewriter Keyboards
Function Keys
Attention
Auto Dup/Skip
Auto Enter
Character Advance
Character Backspace
Character Delete
Character Insert
Cursor Left
Cursor Right
Duplicate
End-Of-Job
Enter/Record Advance
Field Advance
Field Backspace
Field Exit
Field Exit Minus
Hexadecimal
Record Advance
Record Backspace
Reset
Skip
System Request
Defining Display Screens
Uses of Data Definition Statements
The Copy Library and Data Definition Statements
Copying Members
General Rules for Data Definition Statements
The COBOL Program and Data Definition Statements
Chapter 2. Transaction I/O - Screen Definition
Example of Coding Data Definition Statements
Figure 2.1. Sample Form Used by Data Entry Operator
Figure 2.3 Data Definition Statements Coding Example
Figure 2.4 Data Definition Statements as Compiled by the COBOL Compiler
Figure 2.5. Data Definition Statements Coding Example
Coding Conventions
Primary, Continuation, and Secondary Lines
Continuation Characters
Keywords
Constants
Comment Statements
Record Description Statements
Form Type Field (Column 6)
Name Type Field (Column 17)
Record Name Field (Columns 19 through 26)
Usage Field (Column 38)
Editing Field (Columns 45 through 80)
Check(DD)
Dspatr(Attributes)
Field Description Statements
Sequence Number Field (Columns 1 through 5)
Form Type Field (Column 6)
Indicator Field (Columns 9 and 10)
Field Name Field (Columns 19 through 24)
Length Field (Columns 30 through 34)
Data Type Field (Column 35)
Decimal Positions Field (Column 37)
Location Field (Columns 39 through 44)
Editing Field (Columns 45 through 80)
CHECK (Parameters)
DSPATR (Attributes)
Figure 2.6. Attributes that Can be Specified with the DSPATR Keyword
Pmt(Message)
Shift(Codes)
Keyword Conflicts and Compatibilities
Chapter 3. Transaction I/O - Writing the COBOL Program
Summary of COBOL Transaction I/O Statements
FILE-CONTROL Paragraph
Open
Write
Read
Sequence of Transaction I/O Statements
Clearing the Screen with WRITE
Close
I/O Error Processing
Status Key
Coding the Status Key
Exception/Error Procedures
Example Using Status Key and ERROR Procedures
Return Information
Attribute Data
Figure 3.1. Explanation of Values Returned in the ATTRIBUTE-DATA Area
Work Station Control Area
Transaction I/O Examples
Example: Interactive Entry and Processing
Figure 3.2. Example of Transaction I/O Statements
INDICATOR Example
Figure 3.3. Example of Indicators and Conditional Bypass
Chapter 4. Data Communications Programming with COBOL
Uses of Data Communications Programs
Eligible Systems
COBOL Programs and the Communications Access Method
COBOL Program Responsibilities
System Requirements for Communication Programs
Before Running a Data Communication Program
Writing COBOL Communication Statements
Communication Routine Parameters
Communication Program Example - Explanation
Open Routine
Figure 4.1. the COBOL Library Routines that Perform Data Communications
Close Routine
Figure 4.2. Return Codes from the COBOL Communication Library Routines
Read Routine
Figure 4.3. Options Available with the Close Routine
Write Routine
Communication Program Example - Listing
Figure 4.4. Coding Example: Data Communications
Chapter 5. Diskette Input/Output
Input-Output Summary
File Organization and Access Method
Sequential Organization
Relative Organization
Indexed Organization
Record Formatting
FILE-CONTROL Paragraph
FD Entry - VALUE of OWNER-ID Clause
Sharing Files
Unshared Files
Shared Files
When Files Can be Shared
No Sharing with OUTPUT and EXTEND Modes
I/O Error Processing
Figure 5.1. Valid Combinations of SHARE/SHARER and OPEN Modes
EXCEPTION/ERROR Procedures
Status Key
Figure 5.2. COBOL Statements for Status Key and EXCEPTION/ERROR Routine
The INVALID KEY Clause
Error Handling Considerations
Theat END Clause
Figure 5.3. COBOL Statement Execution with at END and INVALID KEY
Permanent I/O Errors
Processing Files with Sequential File Organization
ASCII File Processing
Creating a Sequential File
Reading from a Sequential File
Figure 5.4. Statements Used with Sequential File Organizations
Updating a Sequential File
Multivolume Record Processing
Example
Figure 5.5. Example of Processing Files with a Sequential Organization
Processing Files with a Relative Organization
Creating a Relative File
Figure 5.6. Statements Used with Relative File Organizations
Contents of Relative Key
Example - Creating a Relative File
Figure 5.7. Creating a Relative File
Reading from a Relative File
Updating a Relative File
Example - Reading and Updating a Relative File
Figure 5.8. Example of Processing Files with a Relative Organization
Processing Files with an Indexed Organization
Two Types of Indexed Files
Figure 5.9. Statements Used with Indexed File Organizations
FILE-CONTROL Paragraph for Indexed Organization
Rules and Considerations for Index Data Sets
Adding Records to Indexed Files
Creating an Indexed File
Example
Figure 5.10. Creating an Indexed File - Without Index Data Set
Figure 5.11. Creating an Indexed File - with Index Data Set
Reading an Indexed File
Updating an Indexed File
Figure 5.12. Updating an Indexed File
Chapter 6. Other I/O
Printer I/O
Example of Printer I/O Statements
DISPLAY and ACCEPT
Figure 6.1. Example of COBOL Statements Used for Printer I/O
Example of DISPLAY
Figure 6.2. Example of Statements Used for DISPLAY
SEQUENTIAL Work Station I/O
Work Station I/O with Sequential I/O - Example
Figure 6.3. Example of Statements Used for Sequential I/O to a Work Station
STOP Statement
Chapter 7. Compiler Job Procedures and Options
Inter-Program Communications and Multiple-Compilations
A Note on Compiler Options
Figure 7.1 Job Control Procedure for the 5280 COBOL OS/VS Compiler
Figure 7.2. Required Parameter for Allocating COBOL Data Sets
Figure 7.3 Example of Using a COBOL Compile Procedure
Figure 7.4. Sample Job Control Statements for a DOS/VSE Compilation
Compiler Storage Requirements
Multiple Compilations - the *PROCESS Statement
When Using Subprogram Linkage
With Segmented Programs
Maximum Number of Programs
Format and Rules - *PROCESS
Host Compiler Options
Defaults and Overrides
DECK or NODECK - D or NOD
Figure 7.5 List of Options Available at Compilation
FIPS or NOFIPS
FLAG or NOFLAG
GONUMBER or NOGONUMBER - GN or NOGN
LINECOUNT (N) - LC(N)
LIST or NOLIST
MAP or NOMAP
NUMBER or NONUMBER - NUM or NONUM
OBJECT or NOOBJECT - OBJ or NOOBJ
Figure 7.6. Sample Listing with MAP Option
OFFSET or NOOFFSET- off or NOOF
OPTIONS or NOOPTIONS - OPTN or NOOPTN
PRINT or NOPRINT
PROMPT or NOPROMPT
QUOTE or APOST
Runmsg(N)
Sequenceornosequence--Seqornoseq
SOURCE or NOSOURCE - S or NOS
STMT or NOSTMT
XREF or NOXREF - X or NOX
Figure 7.10. Sample Listing with XREF Specified
Chapter 8. Guide for COBOL Program Execution
Manuals and Documentation Needed by the Operator
Transferring the Load Module from the Host to IBM 5280
Figure 8.1. Possible Methods of Host-5280 Data Exchange
Remote Job Entry Subsystems
Storage Required for Object Programs
Storage Required on Diskette
Main Storage Required for Execution
If a Program Is too Large
Allocating Data Sets for Object Programs
When Programs Are Segmented
Allocating Data Sets for Program Files
Initializing Diskettes
Allocating Data Sets
Specifying a Multivolume Indicator
Determining Exchange Type
Record Size
Number of Records for Indexed Files
Delete Character
Improving Performance
System Considerations
Improved Performance with Sequential Access Method
Improved Performance When Creating Indexed Files
Improved Performance with SIZE Clause
Loading the COBOL Program and Responding to Prompts
Prompts for Loading a COBOL Program
Prompts for Run-Time Options
Prompts for Diskette Files
Prompts for Printer Files
The Status Line and Error Messages
Figure 8.2. Layout of 5280 Screen Information
COBOL Execution Errors
Device Errors
Chapter 9. Debugging
Types of Messages
Acting Upon Compiler Messages
Compiler Abends
Abnormal Termination and SYSDOVL
Messages at Execution
Possible Causes of Execution Errors
Debugging Language
Debugging Lines
Declarative Procedures - USE for DEBUGGING
Example - COBOL Debugging Language
Figure 9.1. Coding Example with COBOL Debugging Language
Chapter 10. Job-To-Job Facility
COBOL Statements Required
When Using the Job-To-Job Facility
Appendix A. Direct Communications Support A-I
Before Running a Data Communication Program A-I
Functions Supported A-I
TINIT Routine
TTERM Routine
TOPEN Routine
TCLOZ Routine
TREAD Routine
TWRT Routine
TCTL Routine
Appendix B. Status Key Return Codes
Advertisement
Quick Links
Download this manual
- - - -
- - - -
-
-
- - -
- - - -
-
-
-
-
-
- -
- ---
- - - - -
- - _
.
-
8L23-0032·1
File No. 85280-24
Licensed
Program
IBM 5280
Distributed Data
System
COBOL
Programmer's Guide
Program Numbers: 5708-CB1(OSIVS)
5708-CB2(DOSIVSE}
Table of
Contents
Previous
Page
Next
Page
1
2
3
4
5
Advertisement
Table of Contents
Related Manuals for IBM 5280
Storage IBM 5280 Manual
Distributed data system programmable data station maintenance analysis procedures (292 pages)
Desktop IBM 5280 Technical Newsletter
Distributed data system / programmable data station (178 pages)
Storage IBM 5280 User's Setup Manual
Distributed data system (169 pages)
Desktop IBM 5280 User's Setup Procedures
Distributed data system (156 pages)
Desktop IBM 5280 Maintenance Information Manual
Distributed data system, maintenance diskette drive (155 pages)
PCI Card IBM 2943 Manual
Power systems. pci adapter placement for the 8202-e4b, 8202-e4c, 8202-e4d, 8205-e6b, 8205-e6c, or 8205-e6d (78 pages)
Computer Hardware IBM 5887 Installing
Disk drive enclosure (72 pages)
Computer Hardware IBM 7311-D11 Removal And Replacement Procedures
(74 pages)
Computer Hardware IBM 5250 User Manual
Express hardware (68 pages)
Computer Hardware IBM Power System 5105-22E Manual
Drive backplane (113 pages)
Computer Hardware IBM 9223-22S Manual
(150 pages)
Computer Hardware IBM 5886 Installing
Disk drive enclosure (50 pages)
Computer Hardware IBM 5291 Operator's Manual
Display station (79 pages)
Computer Hardware IBM 5410 Maintenance Manual
Processing unit (118 pages)
Computer Hardware IBM 5247 Setup Instructions
(30 pages)
Computer Hardware IBM 5444 Manual
Disk storage drive field engineering theory-maintenance (97 pages)
Related Products for IBM 5280
IBM 5790
IBM Power System 5105-22E
IBM 55PUS8118 SCSI-2
IBM 5247
IBM 5444
IBM 5285
IBM 5289
IBM 5281
IBM 5284
IBM 5286
IBM 5287
IBM 5288
IBM 5283
IBM 5260
IBM 5291
IBM 5218
Table of Contents
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL