How to view online the new data added to a PF?

2790 pts.
Tags:
AS/400 administration
PF/LF
Physical File
Subfile
Hi, I need to display in a subfile the new data added to a phisical file, in real time. Who knows unix, this is something like the command "tail -f". Thanks a lot!

Answer Wiki

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

Hi,

Assuming that you have a reload of your subfile in a loop together with your EXFMT, you need to replace the EXFMT with a WRITE to your display file or you can change the display file to have a wait time specified (you’ll then need to handle the time out error). You may also need to change/compile your display file to be DFRWRT(*NO).

Regards,

Martin Gilbert.

Discuss This Question: 1  Reply

 
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
  • philpl1jb
    You want to show the last records in the file. 1. Leave the 'K' off your f-spec - the file will be delivered in arrival secquence 2. Start the load at the bottom of the file *HIVAL SETGT MyFile 3. Read records backwards from the bottom - rough code READP Myfile dow not %TOF(Myfile) and count < pagesize count += 1 load and write a record to the subfile if count < pagesize) READP Myfile endif enddo exfmt sflctl ReadP is read previous record this will load a page - it will appear backwards (newest at the top) You can set pagedown to call this routine again to load the next page.
    51,365 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