Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error In Script


Hi Friends

I imported a fixed length record file into Qlikview by using Edit Script Tab. It ran properly while importing. But when I am trying to reload its showing error.

LOAD *

     @1:3  as Reporting Office,

     @4:6 as [Currency

     @7:8 as Org,

     @9:10 as Manager etc

FROM

(fix, codepage is 1252, no eof);

It showing error as

Syntax error, missing/misplaced FROM:

LOAD *

Thanks

pavan

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi, try below

LOAD *

     [@1:3]  as [Reporting Office],

     [@4:6] as [Currency],

     [@7:8] as [Org],

     [@9:10] as [Manager]

FROM

(fix, codepage is 1252, no eof);

Regards

ASHFAQ

View solution in original post

5 Replies
simondachstr
Luminary Alumni
Luminary Alumni

You need a , after the *

maleksafa
Specialist
Specialist

can you upload your document, because definitely this will not work as you have missing ',' on the second line after [Currency and the last label should be [] as well.

Not applicable
Author

I corred the syntax errors still not working

LOAD *,

     @1:3  as [Rep-Off],

     @4:6 as [Cur-Cd],

maxgro
MVP
MVP

comma and [] for field names with spaces

LOAD *,

     @1:3  as [Reporting Office],

     @4:6 as [Currency],

     @7:8 as Org,

     @9:10 as Manager

     // etc

FROM

(fix, codepage is 1252, no eof);

ashfaq_haseeb
Champion III
Champion III

Hi, try below

LOAD *

     [@1:3]  as [Reporting Office],

     [@4:6] as [Currency],

     [@7:8] as [Org],

     [@9:10] as [Manager]

FROM

(fix, codepage is 1252, no eof);

Regards

ASHFAQ