Focal Point
[SOLVED] READ exceed line

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

March 26, 2009, 02:45 PM
Kamesh
[SOLVED] READ exceed line
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
March 26, 2009, 03:37 PM
Francis Mariani
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
March 26, 2009, 03:57 PM
Kamesh
I have tried that too. No Luck.


WFConsultant

WF 8105M on Win7/Tomcat
March 27, 2009, 06:17 AM
GamP
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
March 27, 2009, 08:46 AM
Kamesh
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
March 27, 2009, 08:47 AM
linus
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