who now's how I can fetch strings like 'NA' in my cursor. I use dynamic sql in my cobol program.
Declare Cursor .... Select 'NA', Column1, Column2, 1 as testcol, Column3, 'NA'
My fetch into is like this:
fetch into
:hs1
,:Column1
,:Column2
,:hs2
,:Column3
,:hs3
where
hs1 is defined as pic x (02)
hs2 as pic x
hs3 as pic x(02)
When I run the pgm I got the SQLCode -303
Is it possible to fetch this kind of columns ?
