bangarmundo
Programmer
I have a file ipsec.list like this:
Otherinfo
Nextinfo
IPSEC
IPSECRULE xxx.xxx.xxx.xxx * log proto *
IPSECRULE yyy.yyy.yyy.yyy * log proto *
ENDIPSEC
;comment
;comment
New INfo
IPSEC
IPSECRULE yyy.yyy.zzz.yyy * log proto *
ENDIPSEC
-----------------------
I want the portion ipsec --endipsec .
I have programmed as follows:
-----------------------
"EXECIO * DISKR T1 (STEM LINE. FINIS"
Do j = 1 to line.0
if Word(line.j,1) = 'IPSEC' then
Do i = j to line.0
QUEUE line.i
if word(line.i,1) = 'ENDIPSEC' then leave
End
End
"EXECIO * DISKW T2 (FINIS ";
EXIT
-------------------------
Is there a better way?
Thanks
Otherinfo
Nextinfo
IPSEC
IPSECRULE xxx.xxx.xxx.xxx * log proto *
IPSECRULE yyy.yyy.yyy.yyy * log proto *
ENDIPSEC
;comment
;comment
New INfo
IPSEC
IPSECRULE yyy.yyy.zzz.yyy * log proto *
ENDIPSEC
-----------------------
I want the portion ipsec --endipsec .
I have programmed as follows:
-----------------------
"EXECIO * DISKR T1 (STEM LINE. FINIS"
Do j = 1 to line.0
if Word(line.j,1) = 'IPSEC' then
Do i = j to line.0
QUEUE line.i
if word(line.i,1) = 'ENDIPSEC' then leave
End
End
"EXECIO * DISKW T2 (FINIS ";
EXIT
-------------------------
Is there a better way?
Thanks