I have a huge file to get from the file system (file name decided at run time). I need to pass it to the functional map which will call the Run Map. Functional map will not do anything with the file. It will simply call the run map by passing the file to it.
Which of the following approch works good and consumes less resources??
1. Use Get the file command once to get the file from the File system. Pass it to the functional map.
GET("FILE","/uat/277/trans.txt")
Here file will be fetched once form the file system and referred as many times as the functional map executes.
2. Use Get file command within the functional map to get the file from the File system.
GET("FILE","/uat/277/trans.txt")
Here file will be fetched as many times as the functional map executes.
3. Use -IF1 command while calling the Run map.
RUN("277_exec.mmc","-IF1 /uat/277/trans.txt.....")
Here file will be accessed/fetched as many times as the Run map get called.
We are using Mercator 6.5 on AIX box.
If you have better idea then above 3, then let me know.
Regards,
Vibhav1008
Which of the following approch works good and consumes less resources??
1. Use Get the file command once to get the file from the File system. Pass it to the functional map.
GET("FILE","/uat/277/trans.txt")
Here file will be fetched once form the file system and referred as many times as the functional map executes.
2. Use Get file command within the functional map to get the file from the File system.
GET("FILE","/uat/277/trans.txt")
Here file will be fetched as many times as the functional map executes.
3. Use -IF1 command while calling the Run map.
RUN("277_exec.mmc","-IF1 /uat/277/trans.txt.....")
Here file will be accessed/fetched as many times as the Run map get called.
We are using Mercator 6.5 on AIX box.
If you have better idea then above 3, then let me know.
Regards,
Vibhav1008