Focal Point
-READ error when list of variables exceed line

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1331097331

July 29, 2004, 08:05 PM
<Vipul>
-READ error when list of variables exceed line
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>,
July 29, 2004, 08:10 PM
susannah
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
July 29, 2004, 09:17 PM
Sandy Stulberger
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>,
July 29, 2004, 10:17 PM
<Vipul>
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
August 03, 2004, 02:56 PM
<Pietro De Santis>
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.