000-349 · Question #52
Which one of the following statements is true with regards to the RUN function?
The correct answer is D. The RUN function can be used to dynamically name source and/or destination files. The RUN function's primary distinguishing capability is the ability to dynamically specify source and/or destination filenames at runtime rather than using hardcoded paths.
Question
Which one of the following statements is true with regards to the RUN function?
Options
- AAll maps executed via the RUN function must be in the same map source file.
- BAll compiled maps executed via the RUN function must be in the same directory as the calling
- CThe first argument of the RUN function can be the name of a functional or executable map.
- DThe RUN function can be used to dynamically name source and/or destination files.
How the community answered
(64 responses)- A3% (2)
- B14% (9)
- C6% (4)
- D77% (49)
Why each option
The RUN function's primary distinguishing capability is the ability to dynamically specify source and/or destination filenames at runtime rather than using hardcoded paths.
Maps invoked via RUN are not required to reside in the same map source file as the calling map; they can be located in separate map sources.
Compiled maps called via RUN do not need to be in the same directory as the calling map; the runtime environment can locate them from different directories.
The first argument of the RUN function must be the name of a compiled or executable map, not a functional map; functional maps are not directly invocable as the primary argument of RUN.
The RUN function allows the calling map to pass dynamically constructed source and/or destination file names as arguments at runtime, making it possible to process variable or computed file paths - this is a core and unique feature of RUN compared to static map invocation methods.
Concept tested: RUN function dynamic file naming capability
Source: https://www.ibm.com/docs/en/b2b-integrator/6.1?topic=functions-run
Topics
Community Discussion
No community discussion yet for this question.