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] Mainframe Focus - String reformatting

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Mainframe Focus - String reformatting
 Login/Join
 
Silver Member
posted
Hi,

I have a field of Length 50, say client name. I have to divide this field into two different fields of length 30 each such that there is no truncation in the data words of the field as mentioned below:

Old value:
aaaaaaaaaa bbbb aaaaaaaaaa eeeeeeeeee cccccc
bbbbbbbb eeeeeeee dddddd eeeee ffffff
dddddddddddd vvvv eeeeeeeeeeeee bbbbbbb
wwwwwww rrrrrrr wwwwww eee ffffffff eeeeeeeee
qqqq zzzzzz eeeeee tttttt rrrrrrrrrr

Transformed values:
Field 1                              Field 2
aaaaaaaaaa bbbb aaaaaaaaaa           eeeeeeeeee cccccc
bbbbbbbb eeeeeeee dddddd eeeee       ffffff
dddddddddddd vvvv                    eeeeeeeeeeeee bbbbbbb
wwwwwww rrrrrrr wwwwww eee           ffffffff eeeeeeeee
qqqq zzzzzz eeeeee tttttt            rrrrrrrrrr


Any suggestions?

Thanks for your help.


-Shrikant

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


FOCUS 7.2.3
Platform: IBM system Z9 Business class
O/P formats: Flat files, excel and CSV files
 
Posts: 39 | Location: Hyderabad, India | Registered: April 28, 2007Report This Post
Virtuoso
posted Hide Post
Search for Character Functions (in Dev Studio Help Index, or in your manual's index). There's a couple of functions there that, in combination, will isolate the first and second portions of your data.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
Thanks Jack!!

I have used the PARAG and GETTOK functions for the requirement as below:

  
DEFINE FILE filename
CLIENT_NAME/A50 = PARAG(50, CLIENTNAME, '¬', 30, CLIENT_NAME);
AN1/A30      = GETTOK(CLIENT_NAME, 50, 1, '¬', 30, AN1);
AN2/A30      = GETTOK(CLIENT_NAME, 50, 2, '¬', 30, AN2);
END

TABLE FILE filename
PRINT AN1
      AN2
BY CLINETNO
ON TABLE HOLD AS OUTFILE FORMAT ALPHA




-Shrikant


FOCUS 7.2.3
Platform: IBM system Z9 Business class
O/P formats: Flat files, excel and CSV files
 
Posts: 39 | Location: Hyderabad, India | Registered: April 28, 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] Mainframe Focus - String reformatting

Copyright © 1996-2020 Information Builders