Focal Point
Updating the BOTTASK (ASVALUE)

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

January 30, 2008, 10:56 AM
Don Robison
Updating the BOTTASK (ASVALUE)
I am needing to update this field in this table
BOTTASK - field ASVALUE - with example ( Adj_0129 ).

ENGINE DB2 SET DEFAULT_CONNECTION DB2T
-SET &DATE01 = AYMD(&YYMD, +0,'I8YYMD');
-SET &Date02 = EDIT(&DATE01, '$$$$9999');
-SET &T_ASVALUE = 'Adj_' | &Date02 | '.xls';
-*******************************************
SQL DB2 PREPARE SQLOUT FOR
UPDATE BOTTASK
SET ASVALUE = 'Adj_0129.xls'
WHERE TASKID EQ 'T127j5rvdr01';
END

It does not give many error so then I do a print on the
record and it has not changed...

TABLE FILE BOTTASK
PRINT
TASKID
ASVALUE
WHERE TASKID EQ 'T127j5rvdr01';

Is there something I am missing?


Don R

This message has been edited. Last edited by: Don Robison,
January 31, 2008, 09:40 AM
Anatess
Don, a shot in the dark... maybe your webfocus user is not authorized for update on the db?


WF 8.1.05 Windows
January 31, 2008, 10:28 AM
Kevin Sherrard
We figured it out.

SET SQLENGINE=DB2
SQL DB2 END SESSION;
SQL DB2 SET SERVER DB2T;
-SET &DATE01 = AYMD(&YYMD, +0,'I8YYMD');
-SET &Date02 = EDIT(&DATE01, '$$$$9999');
-SET &T_ASVALUE = 'Adj_' | &Date02 | '.xls';
-*******************************************
SQL DB2
UPDATE BOTTASK
SET ASVALUE = '&T_ASVALUE'
WHERE TASKID = 'T127j5rvdr01';
END
-RUN


WebFOCUS 7.6.11 HF 6 Client Reporting Server/Caster
7.6.11 PDS Server on MVS DB2
1.46R Tandem
7.6.11 IWAY SQL Server 2000
Access
January 31, 2008, 09:00 PM
jnc
I know you got it solved, but.....

how about using modify?
substitute your values in the

MODIFY FILE BOTTASK
FREEFORM TASKID PACKETID ASVALUE
MATCH TASKID PACKETID
ON MATCH UPDATE ASVALUE
ON NOMATCH REJECT
DATA
,,,$
END


WebFocus 7x, 8x, Win / Linux, any output format