commented assignment in export scanned by rreport

Bill Randall wrandall at fptech.com
Mon Mar 2 13:24:55 PST 2009


Fixed in 5.0.14

(All) #709

    EXPORT ASCII/WORD would always export the same number of fields,
    regardless of whether the fields were assigned to on each record,
    even if they were only referenced in a comment.

    Now, filePro will only export the number of fields as the highest-
    reference field actually assigned.

    For example:

        If:
      Then:  out[1] = 1 ; out[2] = 4
        If:  xx = "y"
      Then:  out[3] = 3 ; out[4] = 4
        If:
      Then:  ' out[5] = 5

    filePro would previously always exported 5 fields.  Now, if x="y"
    is true, it will export 4 fields, and if false will export 2 
fields.

    To revert back to the old behavior, set PFEXPORTALL=ON.


----- Original Message ----- 
From: "Bruce Easton" <bruce at stn.com>
To: "'filepro list'" <filepro-list at lists.celestial.com>
Sent: Monday, March 02, 2009 4:16 PM
Subject: commented assignment in export scanned by rreport


> I'm just wondering if anyone else has run into this weird thing with 
> export
> that I just noticed.
>
> filepro 5.0.08, rreport; SCO Unix
>
> The following export and field assignments work as expected:
>
> export word pall = (fn)
> pall(1)=1
> pall(2)=2
> pall(3)=sc
> pall(4)=rs
>
> Output: "Jerry","2","EDB RET","44"
>
> But when I comment out the last assignment, I still get output
> for the fourth field, and the output is always empty:
>
> export word pall = (fn)
> pall(1)=1
> pall(2)=2
> pall(3)=sc
> 'pall(4)=rs
>
> Output: "Jerry","2","EDB RET",""
>
> I had to delete the commented line to get the new expected output:
>
> Output: "Jerry","2","EDB RET"
>
> I saw that there were some fixes to export in 5.0.13 that might 
> relate to
> this although I did not see a reference to commenting, but only to 
> variable
> file naming.
>
>
> Bruce
>
> Bruce Easton
> STN, Inc.
>
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list 



More information about the Filepro-list mailing list