Chapter 04

Online Insertion Points

Online Insertion Point Cross Reference

Table of Online Insertion Points
Insertion Point Name Maintenance Browse Remarks COBOL Paragraph
New Trans Mode Continuation Mode New Trans Continuation
ADDCHGDELSEE ADDCHGDELNXTDUP LOCSCNFND LOCSCNFND
%ADDINITXXOnly if no error foundBB600-BUILD-REC
%ADDITXXOnly if no error foundAAM710-ADD-TO-DATABASE
%BLNKSCRXAlso if Invalid Key or NOT-FOUNDBB100-BLANK-SCREEN
%CALCXXXBB610-MOVE-SCREEN-TO-DB
%COMPXXXXOnly if REC-FOUNDBB200-FILL-SCREEN
%DATADEFDDDDDDDDDDDDDDDLinkage SectionLINKAGE SECTION -- TWA-DB-DATA
%DELEDITXBB400-EDIT-FOR-DELETE
%DELETXOnly if no error foundAAM730-DELETE-FROM-DATABASE
%EDITXXXBB500-SCREEN-EDIT
%EDIT2XXXIf no error found in %EDITBB500-SCREEN-EDIT
%FUNCTDDDDDDDDDDDDDDDLinkage Section - 88 levelsLINKAGE-SECTION -- VARIABLE-STORAGE
%GOBACKXXXXXXXXXXXXXXXAA900-GOBACK
%GOODADDXXIf ADDIT is successfulAAM753-GOODADD
%GOODCHGXIf UPDAT is successfulAAM755-GOODCHG
%GOODDELXIf DELET is successfulAAM757-GOODDEL
%INITXXXXXXXXXBA150-MAINT-INIT
%INITATBXXXXXXXXXBA200-INIT-ATTRIBUTES BA210-MAINT-SCREEN
%JOINXXXXXXXXXXXXXXXJA100-LOGICAL-JOIN
%LITERALDDDDDDDDDDDDDDDWorking-Storage SectionWORKING-STORAGE -- 01 CUSTOM-ALGORITHM-LITERALS
%LOCINITXXXXXXBA100-INIT-STORAGE & BA105-LOCAT-INIT
%LOCKYXXXAAL410-SET-STARTING-POSITION
%LOCLITSXXXXXXObsoleteWORKING-STORAGE
%LOCMOVXXXXXXCA700-MOVE-TO-WORK-AREA
%LOCVARSXXXXXXObsoleteVARIABLE-STORAGE
%NKLOCXXXXXXBA300-NORMALIZE-KEY
%NORMKEYXXXXXXXXXOnly if no error found in keyBA400-NORMALIZE-MAINT-KEY
%PFKEYLXXXXXXAAL200-BROWSE-MAINLINE
%PRKEYMXXXXXXXXXAAM200-MAINTENANCE-MAINLINE
%PREINITXXXXXXXXXXXXXXXAA100-CHECK-FUNCTION
%RDUKYXXAAM420-READ-BY-KEY-FOR-UPDATE
%REDKYXXXXAAM410-READ-BY-KEY
%REDLEXXXAAL420-READ-FIRST-RECORD
%REDNXXXXXXXXAAL430-READ-NEXT-RECORD , AAM430-READ-NEXT-RECORD
%RELESXXXXXOnly if error foundAAM740-RELEASE-EXCL-CONTROL
%REMARKSDDDDDDDDDDDDDDDIdentification Division - RemarksIDENTIFICATION DIVISION -- REMARKS SECTION
%SELECTXXXXXXBA115-SELECT
%SKEYBLDXXXXXXXCA800-BUILD-SKEY
%SNDSCRNXXXXXXXXXXXXXXXAA800-SEND-SCREEN
%SPOOLXXXXXXXXXXXXXXXIf PF13 hitCB900-SPOOL
%SCHEMADDDDDDDDDDDDDDDBefore Working-StorageDATA DIVISION
%SUBRTNLXXXXXXXXXXXXXXXOnly when PERFORM'dbefore JA999-STOP-RUNAWAY
%SUBRTNMXXXXXXXXXXXXXXXOnly when PERFORM'dbefore ZZ999-STOP-RUNAWAY
%UPDATXOnly if no error foundAAM720-UPDATE-DATABASE
%UPDERRXXXXOnly if error foundAAM751-UPDERR
%USRAREADDDDDDDDDDDDDDDLinkage Section - 01 levelsLINKAGE SECTION -- after TWA
%VARSTORDDDDDDDDDDDDDDDLinkage Section - Variable StorageLINKAGE SECTION -- VARIABLE-STORAGE

Figure 1
Refer to the "Insertion Points" reference table for a compact list. 'X' indicates the insertion point 'fires' (eXecutes). 'D' (Data) indicates insertion point is not in the PROCEDURE DIVISION. Cursor Select name to link to full description, then use back button to return (←).

Batch Insertion Point Cross Reference

Table of Batch Insertion Points (MODELRPT)
Insertion Point Name Input
Procedure
Output
Procedure
Non-Procedure
Division
Remarks COBOL Paragraph
%ACCUMSDWorking-Storage — end of accumulator tableWORKING-STORAGE -- under ACCUMULATORS-AREA
%ADDTOTXCA130-ADD-TOTALS
%BREAKSXCA115-CHECK-FOR-BREAKS
%BRKPRTXDC200-BREAK-PRINT
%DATADEFDWorking-Storage — end of DB-DATA-AREAWORKING-STORAGE -- DB-DATA-AREA
%EOJXRight before GOBACKZZ900-EOJ
%FILEFDDData Division — below PRINT-RECDATA DIVISION -- below PRINT-REC
%FILESDEnvironment Division — FILE-CONTROLENVIRONMENT DIVISION -- FILE-CONTROL
%HDGPRTXDA200-HDG
%INITWSXLast point before the SORT beginsAA000-BEGIN
%JOINXBB100-LOGICAL-JOIN
%MGLOCKYXBA102-START-BROWSE
%MGREDLEXSame paragraph as %MGLOCKYBA102-START-BROWSE
%MGREDNXXBA110-READ-NEXT
%MVTOPRTXSame paragraph as %ADDTOTCA130-ADD-TOTALS
%MVTOSRTXRELEASE to the sort fileBA150-RELEASE
%PREINITXVery top — before initializationat the very top
%REMARKSDIdentification Division — RemarksID DIVISION -- REMARKS
%ROLLACXDC100-ROLL-ACCUMULATORS
%RPTENDXMay close the print fileCA190-END
%SELECTXBA115-SELECT
%SUBRTNMXXCallable from Input or Output Procedurenear physical end of program
%SVPREVXCA120-SAVE-KEYS

Figure 2
'X' indicates the insertion point is in that section of the SORT (Input Procedure or Output Procedure). 'D' (Data) indicates the insertion point is not in the PROCEDURE DIVISION. Cursor Select name to link to full description, then use back button to return (←).

Online Insertion Point %ADDINIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %ADDIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %BLNKSCR

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %CALC

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %COMP

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %DATADEF

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %DELEDIT

Found in Model:

Location:

Description:

Suggested Uses:

IF (NOT TWA-MSK-PFx-HIT) .. . and set an error condition.

Cautions:

Online Insertion Point %DELET

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %EDIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %EDIT2

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %FUNCT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %GOBACK

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %GOODADD

Found in Model:

Location:

Description:

Suggested Uses:

MOVE 'IVCADD' TO SFUNCT.
MOVE FTH-FUNCT TO TWA-NONTP-REQUEST.
GO TO AA900-GOBACK.

Cautions:

Online Insertion Point %GOODCHG

Found in Model:

Location:

Description:

Suggested Uses:

MOVE 'xxxxxx' TO SFUNCT.
MOVE FTH-FUNCT TO TWA-NONTP-REQUEST.
GO TO AA900-GOBACK.

MOVE 'CUSSEE' TO SFUNCT.
MOVE FTH-FUNCT TO TO TWA-NONTP-REQUEST.
MOVE IVC01-CUSTOMER-NO TO SKEY.
GO TO AA900-GOBACK.

Cautions:

Online Insertion Point %GOODDEL

Found in Model:

Location:

Description:

Suggested Uses:

MOVE 'CUSSEE' TO SFUNCT.
MOVE FTH-FUNCT TO TWA-NONTP-REQUEST.
MOVE ------- TO SKEY. (customer number)
GO TO AA900-GOBACK.

Cautions:

Online Insertion Point %INIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

IF TWA-MSK-ID = THIS-PGMS-MSK THEN .........

Online Insertion Point %INITATB

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %JOIN

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

IF (MAINT-FUNCTION)
-or-
IF (BROWS-FUNCTION)

GO TO JA900-RETURN  -- not JA999-EXIT!

Online Insertion Point %LITERAL

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %LOCINIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %LOCKY

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %LOCLITS

Found in Model:

Location:

Description:

Online Insertion Point %LOCMOV

Found in Model:

Location:

Description:

Suggested Uses:

MOVE B TO PROCESS-INDICATOR.

Cautions:

Online Insertion Point %LOCVARS

Found in Model:

Location:

Description:

Online Insertion Point %NKLOC

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %NORMKEY

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %PFKEYL

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %PFKEYM

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %PREINIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %RDUKY

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %REDKY

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %REDLE

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %REDNX

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

IF (MAINT-FUNCTION)
  GO TO AAM440-TEST-RETURN-CODE
ELSE
  GO TO AAL440-TEST-RETURN-CODE.

Online Insertion Point %RELES

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %REMARKS

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %SCHEMA

Found in Model:

Location:

Description:

Suggested Uses:

Cautions Check the rules and restrictions for your DBMS regarding this coding. Online Insertion Point %SELECT Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %SKEYBLD

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %SNDSCRN

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %SPOOL

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %SUBRTNL

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %SUBRTNM

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %UPDAT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %UPDERR

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %USRAREA

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Online Insertion Point %VARSTOR

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %ACCUMS

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %ADDTOT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %BREAKS

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %BRKPRT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %DATADEF

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %EOJ

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %FILEFD

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %FILES

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %HDGPRT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %INITWS

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %JOIN

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %MGLOCKY

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %MGREDLE

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %MGREDNX

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %MVTOPRT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %MVTOSRT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %PREINIT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %REMARKS

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %ROLLAC

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %RPTEND

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %SELECT

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %SUBRTNM

Found in Model:

Location:

Description:

Suggested Uses:

Cautions:

Batch Insertion Point %SVPREV

Found in Model:

Location:

Description:

Suggested Uses:

Cautions: