Hi,
I want to use the host vairables in the SUBSTR function in an SQL. When i tried to do it, it is giving me sqlcode = -171.
Can we use the host variables in an sql for the SUBSTR function. This is in COBOL400.
My sql requirement is :
select * from temtbl
where substr(data, :ws_len1, :ws_len2)
the variables are declared as follows:
ws_len1 pic s9(03).
ws_len2 pic s9(03).
Please let me know as early as possible..
Thank you,
Sandhya.