Hi Im trying to create a simple sqlrpgle subfile program.Its selecting the records file. but when i try to write the records in the subfile its giving session or device error occured error.Program flow ::Declare Cursor C1, and Query (will return one record)Open C1Whenever NOT FOUND goto Enddow...
I have a Fetch statement like this Exec Sql Fetch FileCursor into :FileDS. I am gettting SQLCOD as 30 and JOBLOG says Number of host variables less than result values. Declaration of FileDS is D FileDS E DS EXTNAME(FileNAme) Can anyone tell me the reason for this?