Title: | ALL-IN-1 (tm) Support Conference |
Notice: | Please spell ALL-IN-1 correctly - all CAPITALS! |
Moderator: | IOSG::PYE CE |
Created: | Fri Jul 01 1994 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2716 |
Total number of notes: | 12169 |
My customer runs the following script files on ALL-IN-1 V3.0A. get #enc_start_cnt = 0 compute #enc_start_cnt = #att_start_num - 1 ... ... if #bcc eqs "BCC" .THEN .TEXT "GEM Trace : BCC recipient" INCREMENT #att_overhead INCREMENT #enc_start_enc .end_if Customer uses trace log files to trace the result, it seems that the second increment statement does not function, because there is no "! symbol value does not appear". I would like to ask why there is no symbol values to display on trace log functions. Any advice should be appreciated. -------------------------------------------------------------------------------- get #enc_start_cnt = 0 !symbol : #enc_start_cnt = 0, value 0 compute #enc_start_cnt = #att_start_num - 1 ! symbol: #att_start_num value: 2 ... ... if #bcc eqs "BCC" .THEN .TEXT "GEM Trace : BCC recipient" INCREMENT #att_overhead ! symbol att_overhead, value: 1 INCREMENT #enc_start_enc .end_if -------------------------------------------------------------------------------
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2583.1 | IOSG::MAURICE | Back in the egg | Mon Mar 24 1997 09:18 | 17 | |
Hi, Some things look wrong: A) Before using the COMPUTE function you need a DECIMAL I function to ensure integer arithmetic. B) INCREMENT will fail if the symbol it is supposed to increment has not been initialised. In your example there is no code to initialise #enc_start_enc C) (I think this must have been a typo) the IF statement should have have been .IF rather than IF HTH Stuart | |||||
2583.2 | still have problem | HTSC19::MASCOTTANG | Tue Mar 25 1997 02:26 | 17 | |
Hi, Maurice Thanks for your reply, I am not familiar on ALl-IN-1 programming. As I read the ALL-IN-1 application manaual volume II, there is an example to show how to use the increment statement. I also use the following script. GET #A=1 INCREMENT (#A) I find information from TIMA, the INCREMENT statement is a new statement in ALL-IN-1 V3.0A, you mention that it needs to initilize the symbol. Would you tell me what statement can I use on it ? I also finds that there is no () in customer's programs. Does it have different meaning when I customer uses "increment #A" or increment (#a) any suggestion from you should be appreciated. | |||||
2583.3 | IOSG::MAURICE | Back in the egg | Tue Mar 25 1997 08:11 | 24 | |
Hi, In your script in .0 you had the line: get #enc_start_cnt = 0 Yet later in your script you have the line: INCREMENT #enc_start_enc What I was suggesting is that at the beginning of your script you need to initialise #enc_start_enc to a value (normally 0) by a line such as: get #enc_start_enc = 0 If you try interactively to increment an unitialised symbol you get the error message "Invalid Parameter value". I think the code for increment prefers to have brackets, but still works without them. Best to have the brackets. Cheers Stuart |