Browse Prior Art Database

Automatic Processing of Multiple SEGMENT Occurrence (Twins)

IP.com Disclosure Number: IPCOM000062311D
Original Publication Date: 1986-Nov-01
Included in the Prior Art Database: 2005-Mar-09
Document File: 4 page(s) / 41K

Publishing Venue

IBM

Related People

Knapman, JM: AUTHOR

Abstract

This article describes a solution to the problem of processing multiple occurrences of the same segment on the same screen. IMSADF II (Information Management System Application Development Facility Version 2) is an application generator which runs under IMS. As an application program, it can automatically read data from a screen, manipulate the data, perform data base updates, and write the screen back to IMS, as well as perform various other data processing functions. The usual method of processing is to display and process data from a single segment occurrence of each segment in one or more hierarchical paths, but many customers have a need to display and process data from multiple occurrences of a segment (twins) on the same screen. This is called twin processing.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 37% of the total text.

Page 1 of 4

Automatic Processing of Multiple SEGMENT Occurrence (Twins)

This article describes a solution to the problem of processing multiple occurrences of the same segment on the same screen. IMSADF II (Information Management System Application Development Facility Version 2) is an application generator which runs under IMS. As an application program, it can automatically read data from a screen, manipulate the data, perform data base updates, and write the screen back to IMS, as well as perform various other data processing functions. The usual method of processing is to display and process data from a single segment occurrence of each segment in one or more hierarchical paths, but many customers have a need to display and process data from multiple occurrences of a segment (twins) on the same screen. This is called twin processing. In previous versions of IMSADF, there was no capability for automatic twin processing. Release 1 of IMSADF II contains support for twin processing to be implemented by the application developer using the Auditor. This support is now enhanced to provide automatic functions in the conversational driver. Thus the application developer will be able to implement a wide variety of twin processing applications without having to write any logic. This will substantially widen the scope of applications for which IMSADF II yields high gains in programmer productivity. A detailed explanation follows: The TWINS keyword on the GENERATE OPT=CVALL statement can be used to display and update multiple occurrences of a segment on the same screen, as the following example shows. Using the sample data base, a transaction to display and update multiple occurrences of the IV segment will be defined. The Data Display screen (prepared by the screen image definition given below) is illustrated in Fig. 1.

(Image Omitted)

This screen design allows for three occurrences of the inventory segment. The root segment displayed in Fig. 1 has four occurrences of the inventory segment beneath it. IMSADF II therefore causes the message ENTER AMENDMENTS OR OPTION 'M' TO SEE MORE DATA to be displayed. Since IMSADF II reserves space in the segment area (in the SPA) for only one occurrence of each segment ID, you must define aliases in order to hold multiple occurrences. The easiest way to achieve this is to set up the definition once in a library and employ the Rule Generator INCLUDE statement to copy the definition several times under different segments IDs. The library member consists of FIELD statements like these: FIELD ID=ILOC,KEY=YES,LENGTH=16,POS=1,SLENGTH=10 FIELD SLENGTH=10,ID=PRIC,LENGTH=9,POS=21,TYPE=DEC,DEC=2 FIELD ID=REQC,LENGTH=7,POS=90,TYPE=DEC FIELD ID=STCK,LENGTH=7,POS=114,TYPE=DEC This member will be stored in a library (PDS), which is referenced by the ADFLIB DD name in the Rule Generator JCL procedure MFC1G. If three segment occurrences are to displayed, three segment aliases must be defined as follows: SEGMENT ID=I1,PARENT=PA,NA...