{"id":3610,"date":"2015-11-24T19:53:53","date_gmt":"2015-11-24T19:53:53","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=3610"},"modified":"2022-01-25T09:36:41","modified_gmt":"2022-01-25T17:36:41","slug":"setting-up-a-different-folder-for-eformz-pcl-files-iseries","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/setting-up-a-different-folder-for-eformz-pcl-files-iseries\/","title":{"rendered":"Setting Up a Different Folder for eFORMz PCL Files in an iSeries (AS\/400) Environment"},"content":{"rendered":"<p>The Director Toolkit&#8217;s post-processing can be used to set up a different folder for the final destination of eFORMz PCL files in an iSeries environment. IFS files should be handled with shell scripts. The one line contents of this shell script handle the renaming of any number of files in the <em>\/minisoft\/input\/from<\/em> directory.<\/p>\n<p>Listed below, there is the&nbsp;Director External Command, the script file contents, a screenshot of the Director Toolkit setting, and a short log fragment of this process in action.<\/p>\n<pre>QSH CMD('\/minisoft\/rename_pcl.sh')<\/pre>\n<pre>$ cat \/minisoft\/rename_pcl.sh\ncd \/minisoft\/input\/from; for file in *.tmp; do base=`basename \"$file\" tmp`; mv \"$file\" \"$base\"pcl; done\n\n<\/pre>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3611\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD.png\" alt=\"QSH-CMD\" width=\"593\" height=\"278\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD.png 593w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD-300x141.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD-150x70.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD-250x117.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD-550x258.png 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/11\/QSH-CMD-384x180.png 384w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/a><\/p>\n<p>0000000094 (11\/12\/15 9:37:53 PM) Variables:<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) directory = \/minisoft\/input<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) datafileext = xml<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) datafilename = 1<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) project = sample1<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) 1 pages output (PCL format) to \/minisoft\/input\/from\/sample_1447364273325.tmp<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) Processing complete<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) Executing external command: QSH CMD(&#8216;\/minisoft\/rename_pcl.sh&#8217;)<br \/>\n0000000094 (11\/12\/15 9:37:53 PM) ****** Sleeping ******<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Director Toolkit&#8217;s post-processing can be used to set up a different folder for the final destination of eFORMz PCL files in an iSeries environment. IFS files should be handled with shell scripts. The one line contents of this shell script handle the renaming of any number of files in the \/minisoft\/input\/from directory. Listed below, [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,1,186],"tags":[81,27,427,191],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3610"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=3610"}],"version-history":[{"count":10,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3610\/revisions"}],"predecessor-version":[{"id":9907,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3610\/revisions\/9907"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=3610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=3610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=3610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}