Re: USER in ace reports
Posted in 1994
--=====================_787562654==_
Content-Type: text/plain; charset="us-ascii"
We use a simple standard when writing reports using Ace..
We embed the ace program into a Unix Shell script and use the Process Id
of the user
i.e
#-- TMP - is a unique file name made up of "tmp"+process-id . e.g. tmp15034
tmp="tmp$$"
then we use the inline editor to create the Ace program from within the
shell script
i.e
e - $tmp.ace <<-!EOF
.
Database patient end....
..
Select acode, bcode, patname from $tmp
into temp $tmpA
..
.
w!
q
!EOF
Then a unix command to compile it and run it
saceprep $tmp
sacego -s $tmp >$tmp.out ## or use $OUTFILE which is defined
etc this way each user is always using a unique name for every file or table
that is created for that run. if you fix it to a users LOGNAME then the user
cannot run more than 1 instance of the report ....we have this situation
frequently i.e runningg report for two months seperately .
I have attached an scriptas an example...
>
>> In an ace report I have two select statements joined by a UNION and
>the > results going into a temp table. I would like to use a variable
>name
>> for the temp table being used in order to avoid problems with other
>> users attempting to use the same report. What I would like to do is use
>> the user name as part of the temp table name. > > How can I get this
>accomplished???
>> > -------------------- ***** JBT ***** ------------------
>> > > J. B. Taylor (jbtaylor@lanmail.rmc.com)
> > Reynolds Metals Company > Manufacturing Technology
>Laboratory > 3326 East 2nd Street > Muscle
>Shoals, AL 35661-1258 > FAX: 205-386-9656
>> Voice: 205-386-9658
>> > -------------------------------------------------------
>
>
--=====================_787562654==_
Content-Type: application/mac-binhex40; name="UXBPTPDE.TXT"
(This file must be converted with BinHex 4.0)
:$&9B3P"88%4&,P4B9!"849K8G(4iG!!!!!!,MJ!!!!"**e4KBQaP)$%J)#!J)#!
J)#!J)#!J)#!J)#!J)#!J9d9-6%P14e426L")6e03594"6#!S3d0)6#NJ)#!J)#!
J)#!J)#!J)$%d,c%b,cNd$9Bc-#i`15ij0#!J)#!J)#!J)#!J)#!J)#!J)#!J4'P
cBfKKFQGPFb!SBRNJ6@pZG'JT)'PZ)%9iG(*KBh4TEfiJ)#!J-6Bk06Jk-$N0)#!
J)#!J)#!J)#!J)#!JCQpb)#!J-6N[-6%[-6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Y,5d
Y,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5em$3d0)#!J)#!
J)#!J)#!J)#!J)#!J)#!J)#!`@d*G)%eTER9c)#!J)#!`@dGG)!dJ*5"%DA0MD(-
JG'mJ68p))$dJ)#dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dJ25!J)#!J)#!J)#i
`-!dJ)#!J)#!J)#!J)#!J)#!J)#!J)#!J)#!J)#!J)#!J)#!J-6)j0eY"A3d0)&4
SC5"8FR9P)#8JEfBJC'PcBfKKFQGPFb"KBf0PF(4PC#"LH5"06dJJDA-J1L!0)%9
iG(*N)'eTER9c)%9bFQpbFb"NDACTC'9N)'*j)&4[G'&X)%4TFf0SFb"QEh)JG'K
KG#"0EfjdD#i0$5"'Eh)J3d0))#8JB@4N)&GPE'aTEQGdEfiJCQPRGA*PFb"E39d
J,#"E4edX)'&ZC#"E39dJ$A4[)%YPEQ9`GA*e)'CTCh9bCA-JB@jN)'&`F'aj)(4
[)'&LEhCP)'9aG@&dD@pZ)!d0$3d0$3d0$3d0$3d0$3d0$3d0$3d0$3d0$3d0$5d
Y,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5dY,5d
Y,5dY,5dY,5dY,5dY,5dY$8bQ!!!!:
--=====================_787562654==_
Content-Type: text/plain; charset="us-ascii"
___________________________
_______________________________| B.Raman
|__________________________
\\ Internet: | Capital Coast health Ltd |
/
\\ bsqlbp@mash.wnhealth.co.nz | Private Bag 7902. |
/
)Voice: | Wellington 6001, N.Z |
(
/ 09-385-5999 |___________________________|
\\
/_________________________________)
(____________________________\\
--=====================_787562654==_--