Topic
2 replies Latest Post - ‏2012-11-13T17:43:55Z by FormerBuckeye
SystemAdmin
SystemAdmin
6184 Posts
ACCEPTED ANSWER

Pinned topic WTX Map with no Input

‏2012-11-12T16:07:12Z |
Hi There,

We are now designing a WTX map, that takes 4 files as input and generates some output, the challenge what we face now is not all the 4 inputs would be present during the map execution, one of the input files may or may not be present, is there an option to specify within WTX to have an optional input card ? i.e.. if the input file specified is present then process it through , else use an empty file.

Thanks in Advance,
Praveen.
Updated on 2012-11-13T17:43:55Z at 2012-11-13T17:43:55Z by FormerBuckeye
  • SystemAdmin
    SystemAdmin
    6184 Posts
    ACCEPTED ANSWER

    Re: WTX Map with no Input

    ‏2012-11-13T16:57:09Z  in response to SystemAdmin
    One option is create two copies of the map, one with the 4 inputs and one with 3 inputs. Then create a map whose only map rule does nothing but check for the presence of the conditional file (probably using GET) and RUN the appropriate map of the two. If any (or more than one) input file may not be present, it gets more complicated.
  • FormerBuckeye
    FormerBuckeye
    25 Posts
    ACCEPTED ANSWER

    Re: WTX Map with no Input

    ‏2012-11-13T17:43:55Z  in response to SystemAdmin
    I use a batch job that checks for the presence of the necessary input files, invokes the correct WTX map with dtxcmdsv, and passes the filenames to it with -IF1, -IF2, etc. switches.