Changing the name of the of the output

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

chetankumarh
Posts: 3
Joined: Fri Feb 06, 2009 3:10 am

Changing the name of the of the output

Postby chetankumarh » Sat Feb 07, 2009 1:16 am

HI,

Scenario:
I/p file :Mainframe binary file
O/p File :Ascii file

The format of i/p name is <<FileName>>_<<DATETIMESTAMP>> ( meaning file name changes every day).

and we need a standard output file name say : <<FileNAme>>.txt

Requirement:
I/p Binary file name :<<Filename>>_<<DatetimeStamp>>
o/p ASCII File Name : <<FileName>>

Example 1 : I/P File name : Contract_02042009.bin
o/p File name: Contract.txt
Example 1 : I/P File name : Contract_02052009.bin
o/p File name: Contract.txt


Please let us know the ways to achive this.


Thanks,
Chetan

User avatar
DataMystic Support
Site Admin
Posts: 2136
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Changing the name of the of the output

Postby DataMystic Support » Mon Feb 09, 2009 9:23 am

You need to search/replace inside the filename using a file name restriction:

Code: Select all

Restrict to file name
|
+--Perl pattern [[^\\].*?$] with [Contract.txt]
      [ ] Match case
      [ ] Whole words only
      [ ] Case sensitive replace
      [X] Prompt on replace
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest