Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     -READ error when list of variables exceed line
Go
New
Search
Notify
Tools
Reply
  
-READ error when list of variables exceed line
 Login/Join
 
<Vipul>
posted
This is what happens on -READ, I have looked at the documentation but doesn't help. I thought this is easy.


This is the code
-READ SAVE &LD.A17. &LDF.A1. &OP.A17. &OPF.A1. &OE.A17. &OEF.A1. &TW.A17. &TWF.A1.,
- &TR.A17. &TRF.A1. &CL.A17. &CLF.A1. &MP.A17. &MPF.A1. &MN.A17. &MNF.A1.;
This is the output
-READ SAVE &LD.A17. &LDF.A1. &OP.A17. &OPF.A1. &OE.A17. &OEF.A1. &TW.A17. &TWF.A1.,
(FOC303) CONTROL LINE NOT RECOGNIZED IN FOCEXEC: - &TR.A17. &TRF.A1. &CL.A17.
&CLF.A1. &MP.A17. &MPF.A1. &MN.A17. &MNF.A1.; any insight will help here,

Thanks,

Vipul

This message has been edited. Last edited by: <Mabel>,
 
Reply With QuoteReport This Post
Expert
posted Hide Post
hi vipul
here's what i do
cheat
-READ MYFILE &WHOLETHING.A80
then i parse the whole thing
-SET &LD = EDIT(&WHOLETHING,'99999999999999999');
etc.
you can use the substring command
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteReport This Post
Member
posted Hide Post
Vipul,

When you specify the length of variable values then the syntax requires you to add a comma after the dash on the continuation line.

Your code should look like this...

-READ SAVE &LD.A17. &LDF.A1. &OP.A17. &OPF.A1. &OE.A17. &OEF.A1. &TW.A17. &TWF.A1.,
-, TR.A17. &TRF.A1. &CL.A17. &CLF.A1. &MP.A17. &MPF.A1. &MN.A17. &MNF.A1.

Good luck,

Sandy


quote:
Originally posted by Vipul:
[qb] This is what happens on -READ, I have looked at the documentation but doesn't help. I thought this is easy.


This is the code
-READ SAVE &LD.A17. &LDF.A1. &OP.A17. &OPF.A1. &OE.A17. &OEF.A1. &TW.A17. &TWF.A1.,
- &TR.A17. &TRF.A1. &CL.A17. &CLF.A1. &MP.A17. &MPF.A1. &MN.A17. &MNF.A1.;
This is the output
-READ SAVE &LD.A17. &LDF.A1. &OP.A17. &OPF.A1. &OE.A17. &OEF.A1. &TW.A17. &TWF.A1.,
(FOC303) CONTROL LINE NOT RECOGNIZED IN FOCEXEC: - &TR.A17. &TRF.A1. &CL.A17.
&CLF.A1. &MP.A17. &MPF.A1. &MN.A17. &MNF.A1.;
any insight will help here,

Thanks,

Vipul [/qb]

This message has been edited. Last edited by: <Mabel>,
 
Posts: 8 | Location: Los Angeles | Registered: May 05, 2003Reply With QuoteReport This Post
<Vipul>
posted
Thanks susannah,
Never thought of that...;-). You are really industrious.

Thanks Sandy, but this also does not work, I have tried it. It took that as a DM command and gave me error.

Vipul
 
Reply With QuoteReport This Post
<Pietro De Santis>
posted
Vipul,

Could the problem be the semi-colon at the end of the second line of your -READ statement?

The syntax for the -READ statement has no semi-colon at the end:
-READ filename[,] [NOCLOSE] & name[. format.][,][& name][. format.]
quote:
If the list of variables is longer than one line, end the first line with a comma
and begin the next line with a dash followed by a blank. Use a dash and a comma for
comma-delimited files.
 
Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     -READ error when list of variables exceed line

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.