Fwd: command line process
scooter6 at gmail.com
scooter6 at gmail.com
Tue Mar 30 12:55:41 PDT 2021
So apparently it's necessary to make fa a global in changeacctnumsel
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
FYI
---------- Forwarded message ---------
From: scooter6 at gmail.com <scooter6 at gmail.com>
Date: Tue, Mar 30, 2021 at 11:34 AM
Subject: command line process
To: filePro Mailing List <filepro-list at lists.celestial.com>
I have the following
/u/appl/fp/rreport filename -f changeacctnum -u -a -v changeacctnumsel -ia
(Index A is the field to be changed)
changeacctnumsel looks like this
If: fa=""
Then: input fa(11,allup) "Enter acct to change"
If: 1 lt fa
Then: lookup - k=fa i=A -eg
If: 1 gt fa
Then: la(11,allup)="99999-99999"
If: 1 gt fa
Then: lookupu - k=la i=A -el
If: 1 lt fa
Then: end
If: 1 gt fa
Then: end
If:
Then: select
This works perfectly - my processing changeacctnum runs fine and does what
I want it to do
However, if I change the first line to be :
If:
Then: fa(11,allup)=@px
...and rest of code is the same, and I run this from the command line
/u/appl/fp/dreport filename -f changeacctnum -rx 10000-00001 -u -a -v
changeacctnumsel -ia
I get no errors but it doesn't do what changeacctnum processing is
supposed to do
I have tried it with "10000-00001" in quotes also but same result
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
So I'm wanting to change all records it finds that are 10000-00001 to
10000-00001-1
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
What am I missing here?
thanks
Scott
PDM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20210330/59488ba1/attachment.html>
More information about the Filepro-list
mailing list