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     [SOLVED] READ exceed line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] READ exceed line
 Login/Join
 
Master
posted
Hi,

My READ statement exceeds line and it's not getting the value of the varible from second line onwards. Below is my code, anybody see anything wrong on it.

Note: I didn't get any error with the below code but it's not giving me the value.

-READ SAVE &JID.I11. &JNAME.A64. &DESC.A50. &TT.A21. &OWNER.A30. &GN.A20. &APPL.A20. &CMDLINE.A512. &UD.A10. &NID.A50.,
-, &FREQ.A160. &FTIME.A4. &TTIME.A4. &CYCLIC.A1. &INTERVAL.A6. &DSTR.A160. &DCAL.A10. &WDSTR.A50. &WCAL.A10. &CCAL.A10.,
-, &DATESSTR.A255. &OCOND.A255. &JOKDEST.A255. &JOKCC.A255. &JOKSUB.A255. &JOKMSG.A4000. &JNOKDEST.A255. &JNOKCC.A255.,
-, &JNOKSUB.A255. &JNOKMSG.A4000.
-RUN

This message has been edited. Last edited by: Kerry,


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
It may be because you may have one too many commas in the line.

It should be coded as:

-READ SAVE &JID.I11. &JNAME.A64. &DESC.A50. &TT.A21. &OWNER.A30. &GN.A20. &APPL.A20. &CMDLINE.A512. &UD.A10. &NID.A50.,
- &FREQ.A160. &FTIME.A4. &TTIME.A4. &CYCLIC.A1. &INTERVAL.A6. &DSTR.A160. &DCAL.A10. &WDSTR.A50. &WCAL.A10. &CCAL.A10.,
- &DATESSTR.A255. &OCOND.A255. &JOKDEST.A255. &JOKCC.A255. &JOKSUB.A255. &JOKMSG.A4000. &JNOKDEST.A255. &JNOKCC.A255.,
- &JNOKSUB.A255. &JNOKMSG.A4000.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
I have tried that too. No Luck.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
Kamesh,

Your DM lines become too long.
Code it like:
-READ SAVE &JID.11. ,
- &JNAME.64. ,
- &DESC.50. ,
- &TT.21. ,
- &OWNER.30. ,
- &GN.20. ,
- &APPL.20. ,
- &CMDLINE.512. ,
- &UD.10. ,
- &NID.50. ,
- &FREQ.160. ,
- &FTIME.4. ,
- &TTIME.4. ,
- &CYCLIC.1. ,
- &INTERVAL.6. ,
- &DSTR.160. ,
- &DCAL.10. ,
- &WDSTR.50. ,
- &WCAL.10. ,
- &CCAL.10 ,
- &DATESSTR.255. ,
- &OCOND.255. ,
- &JOKDEST.255. ,
- &JOKCC.255. ,
- &JOKSUB.255. ,
- &JOKMSG.4000. ,
- &JNOKDEST.255. ,
- &JNOKCC.255 ,
- &JNOKSUB.255. ,
- &JNOKMSG.4000.

and then there is no problem.
Be sure, that your input record has enough characters to accomodate for all these long fields, or you may run into an error situation because of that.

Hope this helps...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
Thanks Gamp and Francis.

After I tried Gamp suggestion, it worked.

I think the READ line should go to next line if it reaches 80 characters. Otherwise it won't get those values.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Platinum Member
posted Hide Post
You are correct your read line cannot exceed 80 characters.


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
 
Posts: 149 | Location: Dallas, TX | Registered: June 08, 2007Report 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     [SOLVED] READ exceed line

Copyright © 1996-2020 Information Builders