ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Name of inputFile

Post new topic  Reply to topic
 Name of inputFile « View previous topic :: View next topic » 
Author Message
broc_u
PostPosted: Thu Jul 10, 2014 4:43 am    Post subject: Name of inputFile Reply with quote

Newbie

Joined: 10 Jul 2014
Posts: 2

...

Last edited by broc_u on Sun Jul 13, 2014 9:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 10, 2014 4:58 am    Post subject: Re: Name of inputFile Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

broc_u wrote:
1)How can I get name of inputfile?


Examine the area in the message tree where the name is stored. The one listed in the InfoCenter

broc_u wrote:
2) And Can I check input file is used before or not?


Under what circumstances, given the operation of the FileInput node, do you feel a file could be reused?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
broc_u
PostPosted: Thu Jul 10, 2014 5:06 am    Post subject: Re: Name of inputFile Reply with quote

Newbie

Joined: 10 Jul 2014
Posts: 2

...

Last edited by broc_u on Sun Jul 13, 2014 9:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 10, 2014 5:40 am    Post subject: Re: Name of inputFile Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

broc_u wrote:
But i need get name of input file in compute, get name by esql.
for example i have input file inputXML.xml, i want to get inputxml.


And as I indicated above, this is available as documented.

broc_u wrote:
I have assignment to check inputfile with file in mqsiarchive folder. If this file there is in mqsiarchive folder i must show this file used before.


How exactly are you going to obtain a list of file names from the mqsiarchive directory from within ESQL? What will you do if a timestamp has been added to the file name before archiving, or if the FileInput node doesn't archive the input file, or if an external process cleans the file out of the archive directory before the second instance comes (we have a cron job that cleans out such directories to preserve space)? What happens if you get a file input1.xml, the sender thinks it didn't arrive and sends input1_resend.xml with the same content?

In short:

a) Why are you not checking to see if the contents of the presented file match a previous incarnation?
b) Why are you not using a transport mechanism other than files that would eliminate the problem at source?

Do not answer "because my assignment is to check the file names". That's not an answer unless you moonlight as a parrot.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jul 11, 2014 4:19 am    Post subject: Re: Name of inputFile Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Vitor wrote:

Do not answer "because my assignment is to check the file names". That's not an answer unless you moonlight as a parrot.


Harsh, Vitor, Harsh... A little bit more gentle I'm sure would get the message across just as clear...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Jul 11, 2014 4:42 am    Post subject: Re: Name of inputFile Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:
Vitor wrote:

Do not answer "because my assignment is to check the file names". That's not an answer unless you moonlight as a parrot.


Harsh, Vitor, Harsh... A little bit more gentle I'm sure would get the message across just as clear...


The stress of the real world leaking into the online world
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri Jul 11, 2014 10:00 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Perhaps? http://www-01.ibm.com/support/knowledgecenter/api/content/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac55410_.htm#ac55410___File
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jul 11, 2014 10:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Tibor wrote:
Perhaps? http://www-01.ibm.com/support/knowledgecenter/api/content/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac55410_.htm#ac55410___File


Not the documentation I referred to above, but certainly the content.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Name of inputFile
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.