The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Loop Files
Hey Guys,
I would like to use loop files to loop over a bunch of tab delimited files and append them all together. It seems like this should be easily achievable with remember and recall but I cant seem to figure out how to set it up so that the first file is not appended more than once. Maybe I should Just CAT the files, however like that RM checks the attributes prior to appending.
Basically since only one file is accessed during each loop iteration somehow I need to start appending in the second iteration. ???
I would like to use loop files to loop over a bunch of tab delimited files and append them all together. It seems like this should be easily achievable with remember and recall but I cant seem to figure out how to set it up so that the first file is not appended more than once. Maybe I should Just CAT the files, however like that RM checks the attributes prior to appending.
Basically since only one file is accessed during each loop iteration somehow I need to start appending in the second iteration. ???
Tagged:
0
Answers
http://rapid-i.com/rapidforum/index.php/topic,2282.msg8989.html#msg8989
I think I see what you mean however your link connects back to this page :P. What example did you have in mind?
-Gagi
Oops. Just changed it.
I am running into the problem of extracting the loop file iteration value. If I extract apply_count or loop_count from the loop 'loop files' operator I can branch on the first iteration to remember the first file and then in the following loops append and remember the next files.
How can I extract the loop iteration from loop_files? I feel like I have tried all combination of extract macro operators. ???
-Gagi
Try this...
Thanks again! I solved the problem by making my own count macro and incrementing in the loop your process is just a bit less cumbersome. ;D
I did notice that it would not iterate through my files without another operator in the loop_files such as read csv. I wonder why it does not log anything with the process as it is?
Thanks,
-Gagi