MC Press Online Forum
Welcome, Guest
Please Login or Register.    Lost Password?
FTP question (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: FTP question
#75692
ukpi1b (User)
Expert Boarder
Posts: 121
graphgraph
User Offline Click here to see the profile of this user
FTP question 5 Years, 6 Months ago Karma: 0  
Thanks for the answer. That is exactly the same approach I thought would do it. However there is always a possibility when you don't have complete set of files because more data is coming when you are reading (processing) next record. So, that data set will be processed via next FTP - that is not the way users want it. <BR>
&nbsp;There are some interesting findings for executing commands via FTP, but it is topic for next discussion.
 
Report to moderator   Logged Logged  
 
ukpi1b
  The administrator has disabled public write access.
#75691
ukpi1b (User)
Expert Boarder
Posts: 121
graphgraph
User Offline Click here to see the profile of this user
FTP question 5 Years, 6 Months ago Karma: 0  
We have a situation when several file transfer and job to process them on AS400 side via FTP is initiated from different PC without PC server. The requirement is to process one set of data (one order) at a time and save it on AS400. Job queue to process files is single threaded. How to preserve data when two or more requests are executed simultaneously? This scenario is unlikely to happened, but could be simulated and must be tested. <BR>
Preliminary testing shows that when file on AS400 side is already allocated and another request is executed via FTP &#8216;quote rcmd sbmjob cmd(call xpgm)&#8217; &#8211; FTP sends message about successful job submission, but AS400 job abends after waiting period. One possible solution is to process all available data when job is initiated and deleting processed records. <BR>
Any other ideas are greatly appreciated.
 
Report to moderator   Logged Logged  
 
ukpi1b
  The administrator has disabled public write access.
#75693
Guest.Visitor (Visitor)

Birthdate:
FTP question 5 Years, 6 Months ago  
Seems like you have a file-sharing issue. <p>You can eliminate this problem by defining your AS/400 file to allow for multiple members. So, all you have to do now is revise your FTP jobs to load data to specific members unique to each specific job (such as device name, user-id name, job name, etc.). <p>The only additional consideration here is that you may have to develop another program run periodically to do housecleaning of incomplete/lost data inside this file. <p>By the way, if for some reason you are constrained from using multi-member files, you can alternatively design your FTP jobs to create unique file names instead of members. In this case, I recommend you create/define a separate library dedicated specifically for such files.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
   MC-STORE.COM