Take locations from Excel, fetch its type and generate new Excel with type
DEFINE VARIABLE m_flepath AS CHARACTER FORMAT "x(40)" NO-UNDO .
DEFINE VARIABLE m_fleout AS CHARACTER FORMAT "x(40)" NO-UNDO .
DEFINE TEMP-TABLE tt_temp
FIELD tt_loc AS CHARACTER .
FOR EACH tt_temp WHERE trim(tt_loc) = "" NO-LOCK :
DELETE tt_temp .
END. /* for each */
DO ON ERROR UNDO, RETRY :
OUTPUT TO value(m_fleout).
FOR EACH tt_temp NO-LOCK :
FIND FIRST loc_mstr WHERE loc_loc = tt_loc NO-LOCK NO-ERROR.
IF AVAIL loc_mstr THEN
DO:
PUT UNFORMATTED
loc_loc "~011"
loc_type "~011" SKIP.
END. /*if avail loc_mstr */
END. /*for each */
OUTPUT CLOSE.
END. /*DO*/
MESSAGE "Procedure complete " .
END. /*repeat*/
"QAD - Check the type of location - Progress 4gl"
No comments yet. -