[comp.sys.ibm.pc.misc] Help Manipulating Merge Variables

mr@ogre.cica.indiana.edu (Michael Regoli) (01/23/91)

][

Maybe someout out there can help me with this merge problem.

I've just converted an invoice system into a WordPerfect 5.1 merge.

I would like to have the the merge create the invoice number by using
the record number of an invoice and add 70,000 to the number.  So
record 152 will have invoice number 70152.  (The record number is my
{FIELD}6~.)

How can this be accomplished?  My attempts have been unsuccessful. 
The way I figure it, I need to store {FIELD}6~ (the record number) into
a variable, "a":

{ASSIGN}a~{FIELD}6~

Store my 70,000 into another variable, "b":

{ASSIGN}b~70000~

Then add them together and print out the result:

{ASSIGN}c~a+b~
{VARIABLE}c~

This just doesn't work.  I've enclosed the two files I'm playing with
(in.pf, the primary file; in.sf, the secondary file).  It just
produces a few blank lines.

begin 400 mergetst.zip
M4$L#!`H````&`)2*-A8!&:$50P,``&<%```%````24XN4$8/`!(#)!4V)S@Y
M:GM,G6X?"08!$S3E]I;W_U^%.C0U@>,#*A#N6??_+PA0)L`(T6X0((1G%S+L
M!P$F*'8IP_X0H)5BWX*N`L$.(#Y6LL[D"W"-L0>(FH0:EFU8NFG=O@7HD>#_
M_X(!UN#VG@!=`H1-`%P#'JUO40#T6#>"E&@N[@$"^AXJ;X!G<PX-.!&@28%0
M_?L+YO^"_S<LQA(,2NA%`J@O6=L&&+[7L$,6$`[IU>5,HERY:GX\LV?/HV]=
M]G3YAKE@W`7S;]]&3?P8KF#'<,TRSNRS9V&XK3%#?@M9+UBXCPG?UJM7;\\W
MP7.=R;5L5+A8>YI=6W.EV9JBUY)U>Q:I4YYOT6;^:I;+MZ:3NJR__6'X'F]F
MS1OMF4/9WE/SC[D$XZT7"QK:@FF?-8)IS&LADPFF'[\)IO6:22__S&:B2]XQ
MV;=N]JG\@JFQ"AIG;"88F8F-%C56MP,L;!9NC6!9;KBP"Z;&UMN8]2()5K!.
M@FFX/((;+V\L6&]GJGN]7(+ENK6MW]JEO&IK:CAEJ9/"3P\^)TI'Z9,"\/,]
M%2OF>A-@XL1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C'9MV[VJ?R"J;$*&F=L)AB9R4\#B!JKVP$6-@NW1K`L-US8!5-C
MZVW,>I$$*U@GP31<'L&-ES<6K+<SU;U>+L%RW=K6;^U27K4U-9RRU$GAIP>?
M$Z6C]$D!^/F>BA5SO0DP<6*NBHHWL1VUWS*2&#^+<&'&^*UC/I,+-;PTX6]&
MR[YLV<$?9X0/D">/Y)1O#'#PX+>U:UG_"QV9!&B7>0G[K2U$E_N57(LX<60C
M^(*'>DF=;MRXD=ML^#S/?,NPEQ'>DV1#ER'F@T8+\`1*PPYV#IANGK#][5*X
M6_%"O;N5\5O$8('R+%S6;UG4;P^#M:M5<=G&9=66;1/64.E"_:NF>\%E)?MM
M[&?Y-W]VM6K]`J0SM/]]PQ6@TJ43#!HJE&#&V!8,ZNJ"$6&T8#F[8*1?/\$@
MF4T#QLL8J.*_C9%"!<DT[-RR<I66I0LR:=*D(,A^+MVI8^6FA4M'*CCRF0;9
M'NI3EU"E3@4`Z4!&&R"8AD^Y8F,OG6Z*2OG+K*5N?(C5W"!`",E^*=D1+&K)
M?II`GF&A&_@^P+@;A*:X\SE4!S`I5#"/2;.F=QK>-$WOU`%RB-Z"-RQ,%<%"
MJP67[=09M$^C'60![4#,*:,=Y`'M0)0YHQVD(R/:P<Y("L0"[4"N:=-&.\@&
MVH%\$V>.=J1"4$L!`@L`"@````8`E(HV%@$9H15#`P``9P4```4`````````
M```@`````````$E.+E!&4$L!`@L`"@````8`BH(V%ICDTJXN`P``RP4```4`
K```````````@````9@,``$E.+E-&4$L%!@`````"``(`9@```+<&``````4`
`
end

I'd appreciate any tips on this!  The manual is painfully igornant.

--
michael regoli
mr@ogre.cica.indiana.edu 
regoli@iubacs.bitnet
...rutgers!iuvax!cica!mr