Hello,
I have a question pls.
In a cobol/db2 program, can I modify the WHERE criteria of a query sql ?
for ex:
cond1 = "where nroemp = 'XXXXXXX'
cond2 = "where nro emp ='XXXXXXX' and country = 'USA' "
Select nroemp
into ws-nroemp
from base.tb
where cond1
Select nroemp
into ws-nroemp
from base.tb
where cond2
For both querys I am getting the same colonne (nroemp)
Thanks in advance !