<div>I have an export ascii out put processing script that I want to setup to email after it finishes.</div>
<div> </div>
<div>Currently, in output processing, I use variables to create filename based on today&#39;s date, etc and that all works fine</div>
<div> </div>
<div> </div>
<div>Then:  export ascii deb=(fd) r=\n f=|</div>
<div> </div>
<div>Then: deb(1)=1, etc, etc, etc</div>
<div> </div>
<div>Then: write deb; end</div>
<div> </div>
<div>Now, after this finishes with all the records selected via set selection, I want to email the file, passing the variable filename to the script</div>
<div> </div>
<div>I thought easiest way would be to do a system call at the end, but if I change</div>
<div> </div>
<div>Then: write deb; end</div>
<div>to</div>
<div>Then: write deb</div>
<div> </div>
<div>Then: system &quot;path_to_my_script&quot; &lt; fd</div>
<div> </div>
<div>obviously this calls the system call after each record is written to the file - resulting in numerous emails of course haha</div>
<div> </div>
<div>So, my next thought would be from the menu, to script it as:</div>
<div> </div>
<div>/u/appl/fp/rreport ............</div>
<div>cd /appl/fpmerge</div>
<div>./script_name_to_send_email  ???????</div>
<div> </div>
<div>So how would I get the filename (fd) as defined in processing, passed to the email in the Create Script File (F5) in the define menus??</div>
<div> </div>
<div>Either that, or how do I do a system call ONLY after all records have been written to my output file??</div>
<div> </div>
<div>Thanks for any help</div>
<div> </div>
<div>Scott Ullmann</div>
<div>PDM</div>
<div> </div>
<div> </div>