Fellsway Posted August 14, 2012 Share Posted August 14, 2012 I am wondering if you could have more then one External Data file in a OnJobStart rule and if so what is the limit. I was able to link to one "test1.txt" using a sample I found in the forums (below), but how would I add two files "test1.txt" and "test2.txt"? //Link to the external data file. //The '\t' is used to indicate TAB delimited data in this external data file externalDF = new ExternalDataFileEx('test1.txt', '\t'); if(externalDF.valid != true) { Print('Failed to link to the external data file in OnJobStart'); } Quote Link to comment Share on other sites More sharing options...
step Posted August 14, 2012 Share Posted August 14, 2012 I've never tried this (and even as I'm typing this I still haven't tried my solution to see if it works – so I'm sorry if it doesn't!) That being said, my guess would be that you'd just define a second data file like so: //Link to the 2nd external data file. //The '\t' is used to indicate TAB delimited data in this external data file SecExternalDF = new ExternalDataFileEx('test2.txt', '\t'); if(SecExternalDF.valid != true) { Print('Failed to link to the second external data file in OnJobStart'); } Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 14, 2012 Share Posted August 14, 2012 Yes, Ste is correct. There's no limit. You just have to use a different variable name for each object you create. Quote Link to comment Share on other sites More sharing options...
Fellsway Posted August 14, 2012 Author Share Posted August 14, 2012 Thanks Step! I will give that a try. Quote Link to comment Share on other sites More sharing options...
Fellsway Posted August 14, 2012 Author Share Posted August 14, 2012 Thanks Dan! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.