<div dir="ltr">So apparently it's necessary to make  fa  a global in  changeacctnumsel<div>It works if I put     fa(11,allup,g)=@px     and then run   /u/appl/fp/dreport filename -f changeacctnum -rx 10000-00001 -u -a -v changeacctnumsel -ia </div><div><br></div><div>FYI</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto"><a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a></strong> <span dir="auto"><<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>></span><br>Date: Tue, Mar 30, 2021 at 11:34 AM<br>Subject: command line process<br>To: filePro Mailing List <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>><br></div><br><br><div dir="ltr">I have the following<div><br></div><div>/u/appl/fp/rreport filename -f changeacctnum -u -a -v changeacctnumsel -ia</div><div><br></div><div>(Index A is the field to be changed)</div><div><br></div><div>changeacctnumsel looks like this</div><div><br></div><div>If:  fa=""</div><div>Then: input fa(11,allup) "Enter acct to change"</div><div><br></div><div>If: 1 lt fa</div><div>Then: lookup -  k=fa    i=A  -eg</div><div><br></div><div>If: 1 gt fa</div><div>Then: la(11,allup)="99999-99999"</div><div><br></div><div>If: 1 gt fa</div><div>Then:  lookupu -  k=la   i=A -el</div><div><br></div><div>If: 1 lt fa</div><div>Then: end</div><div><br></div><div>If: 1 gt fa</div><div>Then: end</div><div><br></div><div>If:</div><div>Then: select</div><div><br></div><div>This works perfectly - my processing  changeacctnum runs fine and does what I want it to do</div><div><br></div><div>However, if I change the first line to be :</div><div><br></div><div>If:</div><div>Then:  fa(11,allup)=@px</div><div> </div><div>...and rest of code is the same, and I run this from the command line</div><div><br></div><div>/u/appl/fp/dreport filename -f changeacctnum -rx 10000-00001 -u -a -v changeacctnumsel -ia</div><div><br></div><div>I get no errors but it doesn't do what  changeacctnum processing is supposed to do</div><div><br></div><div>I have tried it with "10000-00001" in quotes also but same result</div><div><br></div><div>What I'm trying to do is write a process that will change acct number if there needs to be an 'associate' account number - so the field in question is actually 13 characters long</div><div>So I'm wanting to change all records it finds that are  10000-00001 to 10000-00001-1 </div><div>As I said, this works fine if changeacctnumsel doesn't try to use @px but there are several files I need to add the -1 to so rather than someone having to input the account number multiple times, I'm trying to pass it as -rx flag to the other files so user inputs 10000-00001 just once and it makes changes to all pertinent files</div><div><br></div><div>What am I missing here?</div><div><br></div><div>thanks</div><div><br></div><div>Scott</div><div>PDM</div><div><br></div><div><br></div></div>
</div></div></div>