>Cetin,
>
>I checked the code and I do have the satement SUBSTR(ih_doc,4). I have since now changed the code to include the length, but still getting the error 62.
>
>This error appears when I am accessing the Financial Software's Output function "SQOUTPUT".
>
>This functions accepts a number of parameters, but I am only passing 1 "YYYY". This parameter allows the user to select either "Screen","Printer","File","Cancel".
>
>Is there something else that could be causing this error?
>
>thanks,
>
>Jason
Jason,
Any function operating with string postions might cause it (left, right, substr etc). Maybe after you do a substr(id_doc,4) another function is trying to do a substr with 2 or more (lcRes = substr('YYYY',4), lcRes = 'Y', substr(lcRes,2) error ).
Can't you insert a breakpoint just before accessing that function and check code?
Cetin