Focal Point
sql error

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3391078331

July 14, 2005, 01:51 PM
MADDY
sql error
hello guys,
i am trying to join two hold files(HOLD1 AND HOLD2) in mre and i am running my report in defered mode and i am getting the error

(FOC1671) SET SERVER ADWPROD COMMAND FOR SQL INTERFACE OUT OF SEQUENCE
(FOC1671) SET SERVER ADWPROD COMMAND FOR SQL INTERFACE OUT OF SEQUENCE
0 NUMBER OF RECORDS IN TABLE= 29 LINES= 1
0 ERROR AT OR NEAR LINE 1035 IN PROCEDURE FINALE(FFOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
0 ERROR AT OR NEAR LINE 1039 IN PROCEDURE FINALE(FFOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
BYPASSING TO END OF COMMAND

do you have any idea for what reason i am getting this error because when i run the queries seperately that return data into my hold files then its working fine.
thanks
maddy
July 14, 2005, 03:24 PM
Francis Mariani
Where are the Masters for these HOLD files? Where are the data files?

By default, HOLD file masters and data files are deleted from the temporary directory and not available to any other WebFOCUS request. You have to save the Masters and data files to be read by another WebFOCUS request.
July 14, 2005, 06:32 PM
MADDY
hi francis,
thanks for uyr reply.i am running 2 seperate sql passthroughs to the database and storing the the data into two holdfiles(hold1 and hold2).and then i am joining these two holdfiles using the by feilds in both the hold files. while attempting to do this i am encountering the above error.
thanks
maddy
July 16, 2005, 10:36 AM
Cyril Joy
I am not very sure, but try to sort the two hold files by the field which you are trying to join and the join the hold files.

TABLE FILE TEMP1
PRINT ...
BY VAL2
ON TABLE HOLD AS ...
END

TABLE FILE TEMP2
PRINT ...
BY VAL4
ON TABLE HOLD AS ..
END

JOIN VAL2 ....TO ...VAL4...