Hi Michael, I think you're going to have to do the "crude, rude" thing... I don't remember if the EITHER function and the RUN function was available in ver. 1.4. You could perhaps do an EITHER(LOOKUP(...), RUN(...)) rule, where your simple RUN map would create a file that you could test for in your BAT file. Actually, I don't think EITHER was available in ver. 1.4. Maybe this would work: IF(PRESENT(LOOKUP(object from inputcard...)), LOOKUP(object from copy of inputcard...), RUN(...)). (You would need two copies of your LOOKUP card because the first LOOKUP in the rule will "consume" the object and the second LOOKUP won't work.) Actually, the RUN option might not work for you because it returns the return code from the RUN function and I'm thinking it wasn't available in ver. 1.4 anyway. Another option?: create a simple map to run after this map that looks for "NONE", and does whatever needs to be done...
=Dean Dean Stynsberg The EDI Guy 651-436-2733 [EMAIL PROTECTED] www.ediguys.net Michael Mattias/LS wrote: > 1/17/06 > > Ok folks, it's time for a Golden Oldie.... > > Does anyone remember (or can think of) some kind of substitute for the > FAIL > function? I am doing some work using Mercator 1.4 (yes, that is correct, > one-point-four) and really could use FAIL...... except that 'FAIL is > not an > option' with this version of Mercator. > > The failure I am trying to handle is a LOOKUP() from a disk file > returning > NONE if that makes a difference. > > I am running a couple of maps using a Windows command (*.cmd) file to > execute the runtime (mercnt.exe) passing the name of the map and some > overrides; ideally, there would be a way to do what FAIL does in Mercator > 5x+: Set the return code of the map execution to some known non-zero > value > (e.g., FAIL sets return code=30) , which I could then query (via > ERRORLEVEL) > in my CMD file and everything would work out just ducky. > > But for now, about all I can think of doing is having the potentially > failing map create/not create a disk file and testing for that using > EXIST > in my CMD file ..... and this just sounds crude, rude and otherwise > bad to > me. > > (Well, maybe I could test to see if that map will fail before I run > it? But > that sounds a lot like rearranging the deck chairs on the Titanic.) > > Any ideas will be appreciated. > > Thanks, > Michael C. Mattias > Tal Systems Inc. > Racine WI > [EMAIL PROTECTED] <mailto:mmattias%40talsystems.com> > > ... Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Job postings are welcome, but for job postings or requests for work: <JOBS> IS REQUIRED in the subject line as a prefix. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/EDI-L/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
