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  iWay Software Product Forum on Focal Point    Uploading excel files and archiving them with datetimestamp

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Uploading excel files and archiving them with datetimestamp
 Login/Join
 
Member
posted
L.S.

We have several excel-files which we receive on a monthly basis.

We have built a flow to upload the data in theses files to a SQL-table in our DWH using DataMigrator.
We have also built a postprocessing procedure to move the uploaded excelfile to an archive-folder
and add a datetime-stamp to the filename.

The postprocessing produre has the following code:
-SET &STAP1= STRIP(19, &DATEHYYMDS, '/', 'A17');
-SET &STAP2= STRIP(17, &STAP1, ':', 'A15');
-SET &STAP3= STRIP(15, &STAP2, ' ', 'A14');
-SET &STEMPEL = &STAP3 || '.';
 
COPY d:\extern\tbl_kostensoort_wf01.xls d:\extern\Backup_WKR\tbl_kostensoort_wf01_&STEMPEL.xls
DEL  d:\extern\tbl_kostensoort_wf01.xls


I wonder:

A. Is there a way using less programmingcode to get the current datetime in an amper variable in a numeric format?

B. Is there a way to move the excelfile without the DOS-codes COPY en DEL?

Kind regards,
Martijn Zwarts


WebFOCUS 7.7
Windows, All Outputs
 
Posts: 5 | Registered: September 11, 2012Report This Post
Virtuoso
posted Hide Post
-SET &T = '_' || &YYMD || '_' || EDIT(HHMMSS('A8'),'99$99$99');
 APP COPYF BASEAPP ATEST EXCEL BASEAPP ATEST&T EXCEL
 APP DELETEF BASEAPP ATSET EXCEL
-RUN  


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Uploading excel files and archiving them with datetimestamp

Copyright © 1996-2020 Information Builders