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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
not writable
 Login/Join
 
<lumen>
posted
Hi

While I write records from a stack to a sequential file I am getting the error " not writable segment".

I am able to write the same to a focus file.Code is as given below.


MAINTAIN FILE OUTSTACK AND TATB
FOR ALL NEXT OUTSTACK.EMPID INTO TASTACK;
FOR ALL INCLUDE TATB.EMPID FROM TASTACK;
END

OUTSTACK is a stack.
TATB is declared as SUFFIX=FIX


Thanks
 
Report This Post
Master
posted Hide Post
You cannot include records to a file with a suffix of FIX with the INCLUDE command from Maintain. The syntax that you supplied works when both MASTER files have the exact same fields (name, format length). But both need to have writable suffixes.

For Maintain to write to a FIX file, you have to use the TYPE ON syntax. It would look something like this:

MAINTAIN FILE OUTSTACK
FOR ALL NEXT EMPID INTO TASTACK
COMPUTE I/I2=1;
REPEAT TATSTACK.FOCCOUNT
TYPE ON TATB "<TATSTK[I].EMPID"
-* The line before should have parens, but I used brackets to get past the filter.
COMPUTE I=I+1;
ENDREPEAT
END

You will have to have to include each field in the stack on the TYPE ON line, and be careful with the spacing. Also, make sure your FILEDEF command has the APPEND statement so new data is added to the file, and does not overwrite other data.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders