Logical file update during FTP

40 pts.
Tags:
AS/400 FTP
i5/OS
Logical Files
PF/LF
Physical File
When are the associated logical files updated when a physical file is receiving data via FTP?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Great question. Hope someone out there has a more definitive answer.

My guess is –
The logical files are updated as each record is added to the physical file.
That’s necessary because there might be a unique key constraint in one of the logicals
All this would happen before the Put or Get command ends but … I cannot find anything about
the actual sequence of events…is the data transfered to a temp file and then inserted into the
actual physical file?

Exception: logical files with Access path maintenance . . . . . . . . . . : MAINT *REBLD, *DLY

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, I would say that the above answer is correct. The logicals should be updated at the same time as the related physical, providing that *IMMED is specified on the access path maintenance. This should happen on a record by record basis - the system may cache or block records but the validation (for example checking for duplicate keys) should be carried out per record. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Chandlerbing818
    Thanks guys. Actually, I was having the same thought as you guys. But when I setup a trial to FTP a physical file from one partition to another partition, I am quite puzzled. The logical files has MAINT *IMMED. After the FTP is complete, the logical files seems to be intact. Last Change Date did not change. Size did not change. Nothing like I imagined. Actually, that is the reason why I post this question, hoping someone can give a logical explanation.
    40 pointsBadges:
    report
  • philpl1jb
    Last Change Date did not change. Size did not change. Nothing like I imagined I don't know if any would these actually change Did the logical provide access to the new records I'm looking at a Logical over a file that has had records added The last change date doesn't make sense either The object size for a logical will also be misleading. It's probably created with a lot of "open space" so it can place the new entries without a "collision".
    49,940 pointsBadges:
    report
  • Gilly400
    Hi, The object itself hasn't been changed, only the access path has been updated (or at least should have been) - so the last change date should not have changed. It looks to me like there's no easy way to see whether the logical has been updated - I've just tried it using DFU on the physical and nothing seemed to change in the object description of the logical or in a DSPFD of the logical. It seems like the whole process is transparent, so nothing gets visibly updated apart from the physical file. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • GauravKhurana
    i have one physical file .it is a flat file which does not contain any header. every day some process with help of FTP replace this flat file data witht he new one. I need to verify if the files recieved today are of current date. A cross check to see if FTP was sucessfull. I built a mechanism based on Retrieving the last change date of the file. If it iscurrent i am processing the records and doing clrpfm in the end. I have one problem over here. If the file recieved is empty on two consecutive day. on the second day the last change date never gets changed as the file was already empty. due to the fact that i am doing clr[pfm .. for the first time if empty file is recieved it should not change the last change date. but for the first time it is and second day in continuation it is not changing the last change date. Any bosy can help me out on this?
    10 pointsBadges:
    report
  • philpl1jb
    Please enter as a new question.
    49,940 pointsBadges:
    report
  • TomLiotta
    i have one physical file .it is a flat file which does not contain any header. I agree this needs a new question. It doesn't seem related to this thread. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following