Frank Winans
2011-04-08 04:35:34 UTC
I often test macros by disabling the tail end of a sselect line, as in
001 N
002 sselect myfile with a3 # "tree" and with a4 = "0"
003 sort myfile (p
getting tweaked to be
001 N
002 sselect myfile with a3 # "tree"
003 REM and with a4 = "0"
004 sort myfile (p
But unlike the PROC "C"omment line feature, the REM verb eats
the select list. So the SORT would show all items, due to the REM
A small PROC " REMM" will work ok, though;
000 REMM
001 PQ
002 C Use remm instead of rem in macro remarks lines to
presererve active list
002 IF #S X
003 HSAVE-LIST ***@PIB
004 PH
005 HGET-LIST ***@PIB
006 PH
Similarly, a DISPLAYY proc could save-list foo / display whatever /
get-list foo
note: remember to put space after y of hdisplay
a\(10,999)
p
Frank
001 N
002 sselect myfile with a3 # "tree" and with a4 = "0"
003 sort myfile (p
getting tweaked to be
001 N
002 sselect myfile with a3 # "tree"
003 REM and with a4 = "0"
004 sort myfile (p
But unlike the PROC "C"omment line feature, the REM verb eats
the select list. So the SORT would show all items, due to the REM
A small PROC " REMM" will work ok, though;
000 REMM
001 PQ
002 C Use remm instead of rem in macro remarks lines to
presererve active list
002 IF #S X
003 HSAVE-LIST ***@PIB
004 PH
005 HGET-LIST ***@PIB
006 PH
Similarly, a DISPLAYY proc could save-list foo / display whatever /
get-list foo
note: remember to put space after y of hdisplay
a\(10,999)
p
Frank