Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
5Activity

Table Of Contents

Chapter 1.An Introduction to the COBOL/400 Programming Language
Features of the COBOL/400 Compiler
Using COBOL/400 Syntax Notation
Reading IBM Extensions
CL Entry Codes
An Overview of COBOL/400 Programming
Chapter 2.Entering Your Source Program on the AS/400 System
Designing Your COBOL/400 Program
Entering Source Using SEU
Chapter 3.Compiling a COBOL/400 Program
Using the Create COBOL Program (CRTCBLPGM) Command
Using the CRTCBLPGM Prompt Displays
Entering CRTCBLPGM from the Command Line
Entering CRTCBLPGM from a CL Program
Syntax of the CRTCBLPGM Command
Compiling Your Source Program For the Previous Release
Using the PROCESS Statement to Specify Compiler Options
Understanding Compiler Output
Specifying the Format of Your Listing
Browsing Your Compiler Listing Using SEU
A Sample Program and Listing
Chapter 4.Running Your COBOL Program
Replying to Run-Time Inquiry Messages
Chapter 5.Debugging Your Program
Avoiding Common Coding Errors
UsingBreakpoints
Example of a Program Using Breakpoints
Changing Program Variables
Considerations for Using Breakpoints
Using a Trace
Example of Using a Trace
Considerations for Using a Trace
Using a Debug Run-Time Switch
Using a COBOL Formatted Dump
Chapter 6.COBOL/400 Exception and Error Handling
Standard Error Handling
Error Handling Overview
Using Error-Handling Application Programming Interfaces (APIs)
Internal and External File Status
General Error Detection
How File Status is Set
Message Monitor Generation
Ending of a COBOL Program
ReturnCodes
Standard and Nonstandard Error Handling Models
Recovery After a Failure
Chapter 7.File and Data Management
Device Independence and Device Dependence
Spooling
OutputSpool
Commitment Control Considerations
Unblocking Input Records and Blocking Output Records
File Status and Feedback Areas
FileDescriptions
Program-DescribedFiles
Externally Described Files
Data Description Specifications (DDS)
Format 2 COPY Statement (DD, DDR, DDS, or DDSR Option)
Indicators
Data Structures Generated
Key Generation Examples
Declaring Data Items Using CVTOPT Data Types
DBCS-GraphicFields
Variable-length DBCS-Graphic Fields
Examples
Data Description Entry–Boolean Data
INDICATORSPhrase
Indicators Example Programs
Subfiles
Use of Subfiles
Multiple Device Files and Single Device Files
EnvironmentDivision
File-ControlEntry
DataDivision
File Description Entry
Boolean Data Items
ProcedureDivision
Procedure Division Concepts
ACCEPTStatement
ACQUIREStatement
CLOSEStatement
DROPStatement
OPENStatement
Common Processing Facilities
READStatement
REWRITEStatement
WRITEStatement
USEStatement
Examples of Work Station Programs
Basic Inquiry Program
Order Inquiry Programs Using Subfiles
A Payment Update Program
Chapter9.PrinterFiles
SPECIAL-NAMES Paragraph and the ADVANCING Phrase
LINAGEClause
FORMATFILEFiles
Chapter 10.DISK and DATABASE Files
DATABASE versus DISK Files
Processing Methods for DISK and DATABASE Files
COBOL Indexed Files
Referring to a Partial Key
Logical File Considerations
COBOL Relative Files
COBOL Sequential Files
COBOL File Organization and AS/400 File Access Path Considerations
File Processing Methods
Descending File Considerations
Chapter 11.COBOL/400 Programming Considerations
Issuing a CL command from a COBOL program
Issuing a CL Command from a COBOL Program
Using the CORRESPONDING Phrase
LIKEClause
ReferenceModification
Reference Modification with Variable-length Tables
Reference Modification Using Data Names
Reference Modification with Subscripting
De-editing
De-editingExamples
Handling Data Errors
PerformanceConsiderations
PICTURE Clauses for Numeric Items
Eight-Byte Binary Items
Segmentation
Calling a COBOL Program from a Non-COBOL Program
Debugging
*NORANGEOption
*DUPKEYCHKOption
RelativeFiles
CommitmentControl
Reading without Record Locks
InitializingVariables
BlockingRecords
ProgramLoops
Tracing a Loop in a Program
Errors That Can Cause a Loop
Chapter 12.Communicating Between Programs
Transferring Control to Another Program
Main Programs and Subprograms
Returning Control from a Called Program
Initialization of Storage
Calling Another Program
Passing Data Using BY REFERENCE or BY CONTENT
In the Linkage Section
Grouping Data to be Passed
Call by Identifier
Using Pointers in a COBOL/400 Program
Defining Pointers and Pointer Alignment
Pointers and the REDEFINES Clause
Reading and Writing Pointers
Initializing Pointers Using the NULL Figurative Constant
LENGTH OF Special Register
Setting the Address of Linkage Items
Using ADDRESS OF and the ADDRESS OF Special Register
Using Pointers in a MOVE Statement
Using Pointers in a CALL Statement
Using Pointers and APIs to Access User Spaces
Processing a Chained List
DataAreas
Local Data Area
Program Initialization Parameters (PIP) Data Area
FileConsiderations
AppendixA.SegmentationFeature
SegmentationConcepts
ProgramSegments
SegmentationLogic
SegmentationControl
COBOL Source Program Considerations
Segmentation–SpecialConsiderations
AppendixB.DebuggingFeatures
COBOL Source Language Debugging
Compile-TimeSwitch
Run-TimeSwitch
USE FOR DEBUGGING Declarative
DEBUG-ITEM Special Register
DebuggingLines
Appendix C.Level of Language Support
ANSI X3.23-1985 COBOL Standard
COBOL/400 Level of Language Support
SAA Common Programming Interface (CPI) Support
Appendix D.COBOL/400 Messages, the FIPS Flagger, and SAA Flagging
COBOL/400Messages
InteractiveMessages
CompilationMessages
Responding to Messages
COBOL Message Descriptions
Error Message Description
The Federal Information Processing Standard (FIPS) Flagger
SAAFlagging
Appendix E.Differences Between ANSI 74 COBOL and ANSI 85 COBOL
Migrating ANSI 74 COBOL Programs to ANSI 85 COBOL
Using DBCS Characters in Literals
IdentificationDivision
SORT/MERGE
Compiler-DirectingStatements
Communications between Programs
FIPSFlagger
COBOL Program Listings
Appendix G.AS/400 File Processing Examples
Sequential File Creation
Sequential File Updating and Extension
Indexed File Creation
Indexed File Updating
Relative File Creation
Relative File Updating
Relative File Retrieval
Sorting and Merging Files
Appendix H.Example of a COBOL Formatted Dump
Bibliography
Glossary of Abbreviations
0 of .
Results for:
No results containing your search query
P. 1
COBOL 400 User's Guide - c0918120

COBOL 400 User's Guide - c0918120

Ratings: (0)|Views: 1,555|Likes:
Published by codexbook

More info:

Published by: codexbook on Nov 22, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/18/2012

pdf

text

original

You're Reading a Free Preview
Pages 9 to 90 are not shown in this preview.
You're Reading a Free Preview
Pages 99 to 104 are not shown in this preview.
You're Reading a Free Preview
Pages 113 to 149 are not shown in this preview.
You're Reading a Free Preview
Pages 158 to 405 are not shown in this preview.
You're Reading a Free Preview
Pages 414 to 425 are not shown in this preview.

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
1 hundred thousand reads
anuppdas liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->