


{"id":55182,"date":"2017-10-17T09:45:24","date_gmt":"2017-10-17T09:45:24","guid":{"rendered":"\/forum\/forums\/reply\/55182\/"},"modified":"2017-10-17T09:45:24","modified_gmt":"2017-10-17T09:45:24","slug":"55182","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/55182\/","title":{"rendered":"Reply To: Use a do loop to apply several named tabular loads"},"content":{"rendered":"<p><span style=\"font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 15px;\">Below is a script demonstrating the technique to use table parameters having names ending with a sequential value within a do loop. For testing I just list the file contents so you would insert the *dim prior to your do loop and then the do loop contents of my file (after the *do up to the *enddo) into your do loop. Then uncomment the \/input. The second line that starts with str(1) is set up so that you can easily change it to &#8216;all&#8217; or a number such as &#8217;24&#8217;. *dim,str,string,80 *do,jj,1,100 ! *stat,jj ! str(1)=&#8217;sfa,&#8217; str(1)=strcat(str(1),&#8217;area_num&#8217;) str(1)=strcat(str(1),&#8217;,&#8217;) str(1)=strcat(str(1),&#8217;1,pres,%uplift&#8217;) str(1)=strcat(str(1),chrval(jj)) str(1)=strcat(str(1),&#8217;%&#8217;) *cfopen,cmds,inp *vwrite,str(1) %S *cfclose !\/input,cmds,inp *list,cmds,inp ! ! ! *enddo<\/span><\/p>\n","protected":false},"template":"","class_list":["post-55182","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/55182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/55182\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=55182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}