home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
3x400
/
pgmrexit.lzh
/
PMRGSRCO.RPG
< prev
Wrap
Text File
|
1987-06-30
|
7KB
|
81 lines
H* CRTOPT GENOPT(*OPTIMIZE)
H* CRTOPT PUBAUT(*ALL)
H
/SPACE 1
H********************************************************************
H* PROGRAM- PMRGSRCO *
H* AUTHOR- GREG THIELEN *
H* DATE WRITTEN- JUNE 4, 1986 *
H* PROGRAM DESCRIPTION- EXTRACT CREATE OPTIONS FROM SOURCE MEMBER. *
H********************************************************************
FSRCFILE IF F 92 DISK
E RQS 512 1 REQUEST DATA
E OPT 50 1 CREATE OPTION
E PAT 11 1 SEARCH PATTERN
ISRCRCD DS 92
I 21 26 OPTID
I 28 77 OPT
C *ENTRY PLIST
C PARM RQS
C PARM RL 30
/SPACE 1
C SCPLST PLIST
C PARM RQS
C PARM RL
C PARM 1 STRPOS 30
C PARM PAT
C PARM PL 30
C PARM '0' XLATE 1
C PARM '0' TRIM 1
C PARM WILD 1
C PARM RESULT 30
/SPACE 1
C Z-ADD512 RQSLEN 30
C Z-ADD50 OPTLEN 30
C*
C READ SRCFILE SRCRCD 90
C *IN90 DOWEQ'0'
C OPTID ANDEQ'CRTOPT'
C RQSLEN SUB RL AVL 30
C ADD 1 AVL
C*
C Z-ADD1 OB 30
C OB DOWLEOPTLEN
C OPT,OB ANDEQ*BLANK
C ADD 1 OB
C END
C*
C OB IFLE OPTLEN
C*
C Z-ADDOPTLEN OE 30
C OE DOWGEOB
C OPT,OE ANDEQ*BLANK
C SUB 1 OE
C END
C*
C OE SUB OB OL 30
C ADD 2 OL
C OL IFLE AVL
C*
C MOVE *ZEROS RESULT
C MOVE *BLANKS PAT
C MOVEAOPT,OB PAT
C Z-ADD1 PL
C '(' LOKUPPAT,PL 10
C *IN10 IFEQ '1'
C CALL 'QCLSCAN' SCPLST
C END
C*
C RESULT IFEQ *ZEROS
C RL ADD 2 X 30
C MOVEAOPT,OB RQS,X
C ADD OL RL
C END
C*
C END
C END
C READ SRCFILE SRCRCD 90
C END
C SETON LR
C RETRN