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     Utility to convert file to Amper Variable Array

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Utility to convert file to Amper Variable Array
 Login/Join
 
Master
posted
Someone might find this useful. Please post any improvements.
-* File FILEDEF2ARRAY.fex
-************************************* HISTORY *****************************************
-* By   Date        W/O     Modification
-* JPH  01/02/2008  -       Originally written
-*
-* Parameters
-* &FILEDEF  Filedef to read variables from
-* &FMT      Format to read variable eg A80 or , for Free Format (comma and eol delimited)
-* &VARNAME  Variable name
-*
-* Returned
-* &VARNAME0 = count of items &VARNAME1 = 1st item, &VARNAME2 = 2nd item etc etc
-*
-* Example
-* -DOS DIR /B \\PANDORA\C$\WF76\IBI\APPS\IFS\NEW_*.FOC > TEMP.DAT
-*
-* FILEDEF INFILE DISK TEMP.DAT
-* -RUN
-* -SET &FILEDEF  = 'INFILE' ;
-* -SET &FMT      = ',' ;
-* -SET &VARNAME  = 'FILE' ;
-* -INCLUDE FILEDEF2ARRAY
-*
-* -SET &FILE = 0 ;
-* -REPEAT :FLOOP FOR &I FROM 1 TO &FILE0
-* -TYPE &FILE.&I
-* -:FLOOP
-*
-* TABLE FILE CAR
-* PRINT COUNTRY
-* ON TABLE SAVE
-* END
-* -RUN
-* -SET &FILEDEF  = 'SAVE' ;
-* -SET &FMT      = 'A10' ;
-* -SET &VARNAME  = 'COUNTRY' ;
-* -INCLUDE FILEDEF2ARRAY
-*
-* -SET &COUNTRY = 0 ;
-* -REPEAT :CLOOP FOR &I FROM 1 TO &COUNTRY0
-* -TYPE &COUNTRY.&I
-* -:CLOOP
-*
-****************************************************************************************
-SET &VARNAME  = '&' | &VARNAME ;
-SET &F2A_INDEX = 0 ;
-SET &F2A_INPUT = 'NO INPUT' ;
-SET &F2A_READSTRING = IF &FMT | ' ' EQ ',' | ' ' THEN ', &' | 'F2A_INPUT'
-                      ELSE ' &' | 'F2A_INPUT.' | &FMT | '.' ;

-READ &FILEDEF.EVAL&F2A_READSTRING.EVAL
-REPEAT :F2A_LOOP WHILE &IORETURN EQ 0 ;
-SET &F2A_INDEX = &F2A_INDEX + 1 ;
-SET &VARNAME.EVAL.&F2A_INDEX = &F2A_INPUT   ;
-READ &FILEDEF.EVAL&F2A_READSTRING.EVAL
-:F2A_LOOP
-SET &VARNAME.EVAL0 = &F2A_INDEX ;




Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Expert
posted Hide Post
Hi John,

Thanks a lot for sharing this with all. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Expert
posted Hide Post
"\\PANDORA"
Good One




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
We have another servers called ELECTRA and the Client machine called CHAOS so all our users access their business intelligence through a URL that involves chaos
 http://chaos/ibi_apps/WFServlet 


Of course these are Greek Gods[esses].

Any other funny names of servers out there?



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report 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     Utility to convert file to Amper Variable Array

Copyright © 1996-2020 Information Builders