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.
Today, I'm facing a strange issue. I can't repro using CAR.
Precisely, when i try to read a data from my HOLD file, it ends up with appending 000023data1.
Without reading it, displays the output successfully with no spaces or any.(Eg, ENGLAND,ITALY,JAPAN)
TABLE FILE ABC
PRINT COL1
ON TABLE SAVE
-*ON TABLE HOLD AS HOLDFILE FORMAT ALPHA(Tried as well, results same)
END
-RUN
-READ SAVE, &DATA1.A200.
-*-READ HOLDFILE &DATA1.A200.
-TYPE &DATA1
Let's assume COL1 has ENGLAND,ITALY,JAPAN and perhaps its a ALPHANUMERIC field. Output ------- 000023ENGLAND
Seems, blank lines are in my HOLD file.Further, i searched in google, guess it is taking out a special character([]) of HEXA, something like square box.
Tried with ON TABLE SET PAGE-NUM NOPAGE as well, results vain.
Has anyone faced this kind of issue?
Environment: Oracle DB,WF-7611.
Thanks, RifazThis message has been edited. Last edited by: Rifaz,
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013
As Alan pointed out, that behaviour is due to the use of AnV fields in your request.
Unfortunately you are not still on a 7.7.x platform. Since its introduction in 7.7 I switched to using the new -READFILE feature instead of the classic -READ and never looked back. It takes care of all of that stuff for you.
In your case, I suggest that you define/compute a new fixed-length alpha field and use that instead to read into a Dialogue Manager variable.
TABLE FILE ABC
PRINT
COL1 NOPRINT
COMPUTE COL1_A/A200 = COL1;
ON TABLE SAVE AS HDATA
ON TABLE SET HOLDLIST PRINTONLY
END
-RUN
-READ HDATA &DATA1.A200.
i tried already by defining in one field, still results the same.
That's strange. Please look closely at my sample code and focus on the SET HOLDLIST PRINTONLY call which guarantees that only values being "printed" will be available in your SAVE/HOLD file, therefore only COL1_A would be in the file with no prefixed length as it is an A200 field.
Please feel free to also post a short and simplified version of the code you're using for ease of assistance.