March 27, 2007, 04:40 PM
Francis MarianiDialogue Manager variables > 12 characters
This is annoying: you can create DM variables with names longer than 12 characters, but you can't use them in [some?] functions.
-SET &ECHO=ALL;
-SET &PRD_END_DT = '20070131';
-TYPE &PRD_END_DT
-SET &PRD_DTX = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &PRD_END_DT.EVAL, 'A17'), 'A17');
-TYPE &PRD_DTX
-SET &PERIOD_END_DT = '20070131';
-TYPE &PERIOD_END_DT
-SET &PERIOD_DTX = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &PERIOD_END_DT.EVAL, 'A17'), 'A17');
-TYPE &PERIOD_DTX
And you can't plant one of these in an HTMLFORM:
-SET &ECHO=ALL;
-SET &PRD_END_DT = '20070131';
-SET &PERIOD_END_DT = '20070131';
-HTMLFORM BEGIN
!IBI.AMP.PRD_END_DT;
!IBI.AMP.PERIOD_END_DT;
-HTMLFORM END
Not very consistent. Has this been cleaned up in versions newer than 5.3.2?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 27, 2007, 05:33 PM
Tony AFrancis,
There was a case raised on this issue and I believe that it was fixed from 7.1.3 (?) onwards. I remember checking that specifc problem at my last client.
Unless of course BGH reintroduce it as is their wont!!!!
T
March 27, 2007, 08:23 PM
susannahI tested that 2nd bit for you, my developeer friend, in 716, and it indeed doesn't work; i get the first var, not the 2nd.
I tested all your first bits, and they do work.
March 28, 2007, 03:14 AM
Tony AReintroduction is the new progression !!
Or is it that the UWS were not fully tested (surely not)!
T
March 28, 2007, 09:31 AM
mgrackinThe manual for 7.1 still states that a DM variable can be up to 12 characters. I assume this does NOT include the hyphen "-".
-THISWORKS (9 characters not including -)
-THISWORKSTOO (12 characters not including -)
-THISISTOOLONG (13 characters not including -)
March 28, 2007, 09:38 AM
Tony AMickey,
A few too many sherbets last night? Those are labels and not variables.
Pass the bottle please
T
March 28, 2007, 10:09 AM
mgrackinNot so much sherbert but lack of coffee.
Sorry guys. I was looking at labels the other day in the manual and I guess my brain connections got crisscrossed.
I'm going to go get coffee now.
March 28, 2007, 11:05 AM
Tony AI'd put it down to the DST changes three weeks ahead of time
Black no sugar for me please
T
March 28, 2007, 11:27 PM
susannahwhat the sam hill is a UWS?
March 29, 2007, 03:12 AM
Tony ASusannah,
The UWS manual was one that we kept close to hand and contained all of the
User Written Subroutines. It also held information on how to create a UWS and tips on compilation etc.
Now we have the FUNCTION syntax in WF the need to create a new UWS is somewhat negated but the UWS manual (now renamed the "Using Functions" manual) is still one to be kept nearby as it contains all the functions such as AYMD, CHGDAT, CHKPCK, HEXBYT, BYTVAL etc.
T