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'); } 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'); } 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. 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. Link to comment Share on other sites More sharing options...
Fellsway Posted August 14, 2012 Author Share Posted August 14, 2012 Thanks Dan! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.