home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
minivb
/
con2
/
con2nv.cbv
< prev
next >
Wrap
Text File
|
1997-11-24
|
4KB
|
108 lines
* Feature source code generation begins here...
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "getCon2col1".
DATA DIVISION.
LOCAL-STORAGE SECTION.
LINKAGE SECTION.
01 Con2col1.
03 Con2col1-Length PIC 9(9) COMP-5.
03 Con2col1-String.
05 Con2col1-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con2col1-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION
RETURNING Con2col1.
MOVE iCon2col1-Length TO Con2col1-length.
MOVE iCon2col1-String TO Con2col1-string.
GOBACK.
END METHOD "getCon2col1".
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "setCon2col1".
DATA DIVISION.
LOCAL-STORAGE SECTION.
01 aCon2nv USAGE OBJECT REFERENCE con2nv.
01 event USAGE OBJECT REFERENCE CNotificationEvent.
01 con2col1Id USAGE POINTER.
LINKAGE SECTION.
01 Con2col1.
03 Con2col1-Length PIC 9(9) COMP-5.
03 Con2col1-String.
05 Con2col1-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con2col1-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION USING Con2col1.
MOVE Con2col1-Length TO iCon2col1-length.
MOVE Con2col1-String TO iCon2col1-string.
INVOKE CNotificationEvent "somNew" returning event.
SET aCon2nv TO SELF.
INVOKE SELF "getCon2col1Id"
RETURNING con2col1Id.
INVOKE event "initializeNotificationEvent" USING
by value con2col1Id by value aCon2nv.
INVOKE SELF "notifyObservers" using by value event.
INVOKE event "somFree".
GOBACK.
END METHOD "setCon2col1".
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "getCon2col2".
DATA DIVISION.
LOCAL-STORAGE SECTION.
LINKAGE SECTION.
01 Con2col2.
03 Con2col2-Length PIC 9(9) COMP-5.
03 Con2col2-String.
05 Con2col2-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con2col2-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION
RETURNING Con2col2.
MOVE iCon2col2-Length TO Con2col2-length.
MOVE iCon2col2-String TO Con2col2-string.
GOBACK.
END METHOD "getCon2col2".
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "setCon2col2".
DATA DIVISION.
LOCAL-STORAGE SECTION.
01 aCon2nv USAGE OBJECT REFERENCE con2nv.
01 event USAGE OBJECT REFERENCE CNotificationEvent.
01 con2col2Id USAGE POINTER.
LINKAGE SECTION.
01 Con2col2.
03 Con2col2-Length PIC 9(9) COMP-5.
03 Con2col2-String.
05 Con2col2-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con2col2-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION USING Con2col2.
MOVE Con2col2-Length TO iCon2col2-length.
MOVE Con2col2-String TO iCon2col2-string.
INVOKE CNotificationEvent "somNew" returning event.
SET aCon2nv TO SELF.
INVOKE SELF "getCon2col2Id"
RETURNING con2col2Id.
INVOKE event "initializeNotificationEvent" USING
by value con2col2Id by value aCon2nv.
INVOKE SELF "notifyObservers" using by value event.
INVOKE event "somFree".
GOBACK.
END METHOD "setCon2col2".
* Feature source code generation ends here.