Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prob overriding runmap log file name 1

Status
Not open for further replies.

eyetry

Programmer
Oct 2, 2002
560
US
This works:

=RUN (runmap_name_variable,
IF(UPPERCASE(WORD(Audit_File Fields:RunMapCtl, ".", -1))!="ELG",
/* runmap variable A overrides map inputs/outputs */
"-IF1 '" + path\input_file_name.txt +"'"+
ECHOIN (2, PACKAGE (RunMapCtl)) +
" -OF2 '" + path\output_file_name + "'",
/* runmap variable b passes input/output to next map */
ECHOIN (1, PACKAGE (Input RUNMAP B)) +
ECHOIN (2, PACKAGE (RunMapCtl))
) /* end if */
)/*end run */

And this works:

=RUN (runmap_name_variable,
" -ae '" + seriestotext(field_containing_log_file_name.log)+ "' " +
"-IF1 '" + path\input_file_name.txt +"'"+
ECHOIN (2, PACKAGE (RunMapCtl)) +
" -OF2 '" + path\output_file_name + "'")

And this works

=RUN (runmap_name_variable,
" -ae '" + seriestotext(field_containing_log_file_name.log)+ "' " +
ECHOIN (1, PACKAGE (Input RUNMAP B)) +
ECHOIN (2, PACKAGE (RunMapCtl))
)


This does not:

=RUN (runmap_name_variable,
" -ae '" + seriestotext(field_containing_log_file_name.log)+ "' " +
IF(UPPERCASE(WORD(Audit_File Fields:RunMapCtl, ".", -1))!="ELG",
/* runmap variable A overrides map inputs/outputs */
"-IF1 '" + path\input_file_name.txt +"'"+
ECHOIN (2, PACKAGE (RunMapCtl)) +
" -OF2 '" + path\output_file_name + "'",
/* runmap variable b passes input/output to next map */
ECHOIN (1, PACKAGE (Input RUNMAP B)) +
ECHOIN (2, PACKAGE (RunMapCtl))
) /* end of if */
)/*end of run */

Is this a problem with the my rule or a problem with the tool?

Platform W2K
Version DSTX 6.7.1

 
Simplify the rule with as many hard codes values as possible and with as few variables as possible to see what is really going on. Better yet, download 8.0, make a copy of the trees and maps and use the debugger. Even if you don't have plans to go to 8.x soon, the debugger, profiler and page size tools will help you a lot.

BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
hmmmm 8.0 have it but we've made the decision not to go to it until we get our new scheduler and related java code in place.

Can't hard code it anymore than I have as it's a control map. Suppose I could try hard coding two run maps and paths and play around with it some more/
 
Make a copy and test your syntax. Don't have to go to 8.0, you can have both Design Studios on one machine. Just don't double click to open a file. Easier way to work, create two folders on your desktop DSTX8 and DSTX67 or whatever you are using. Put shortcuts to Type Designer, Map Designer and DID in the folders.
To open a map, drag the .mms file to the Map Designer icon.
In design phase, keep all maps, trees and .mdq's in the same directory. Copy that directory and use the copied files to test. When you have the rule, copy, paste to a text file. Open the original map and paste the rule.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
I just need to update the virtual server that has the 8.0 beta.

Times going by toooooooooooooo fast right now.

 
Have you tried

=RUN (runmap_name_variable,
IF(UPPERCASE(WORD(Audit_File Fields:RunMapCtl, ".", -1))!="ELG",
/* runmap variable A overrides map inputs/outputs */
" -ae '" + seriestotext(field_containing_log_file_name.log)+ "' " +
"-IF1 '" + path\input_file_name.txt +"'"+
ECHOIN (2, PACKAGE (RunMapCtl)) +
" -OF2 '" + path\output_file_name + "'",
/* runmap variable b passes input/output to next map */
" -ae '" + seriestotext(field_containing_log_file_name.log)+ "' " +
ECHOIN (1, PACKAGE (Input RUNMAP B)) +
ECHOIN (2, PACKAGE (RunMapCtl))
) /* end of if */
)/*end of run */

It looks as though it's getting confused having an IF after the -ae.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top