Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
-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>,
 
Report 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, 2003Report 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, 2003Report 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
 
Report 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.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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-2020 Information Builders