z***@gmail.com
2020-11-05 09:09:20 UTC
Hi ,
I'm new in Tandem, appreciate your expertise on how to output if ONLY there is a nos in the the result not "0 row(s) selected" . I try do some test but still the same . My simple script as below . Thanks in advance
#FRAME
#push sqlin sqlout
[#DEF :sqlin TEXT |BODY|
SET HEADINGS ON ;
SET PAGE_LENGTH ALL ;
SET LAYOUT SPACE 2 ;
SET LAYOUT RIGHT_MARGIN 80 ;
SET LIST_COUNT 0;
select CLASS, NAME
from =STUDENT
where NAME in
(Richard, Elissa, Adam)
Browse access;
List all;
]
SQLCI/NAME,INV :sqlin,OUTV :sqlout/
#OUTPUTV :sqlout
[#IF [#LINECOUNT :sqlout] > 0 |THEN| < --- if more than 0 then it will
run below command
RUN $STUD.RB.Study
]
#unframe
I'm new in Tandem, appreciate your expertise on how to output if ONLY there is a nos in the the result not "0 row(s) selected" . I try do some test but still the same . My simple script as below . Thanks in advance
#FRAME
#push sqlin sqlout
[#DEF :sqlin TEXT |BODY|
SET HEADINGS ON ;
SET PAGE_LENGTH ALL ;
SET LAYOUT SPACE 2 ;
SET LAYOUT RIGHT_MARGIN 80 ;
SET LIST_COUNT 0;
select CLASS, NAME
from =STUDENT
where NAME in
(Richard, Elissa, Adam)
Browse access;
List all;
]
SQLCI/NAME,INV :sqlin,OUTV :sqlout/
#OUTPUTV :sqlout
[#IF [#LINECOUNT :sqlout] > 0 |THEN| < --- if more than 0 then it will
run below command
RUN $STUD.RB.Study
]
#unframe