insert file full crash msgw

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pkenosky
New User
Posts: 12
Joined: Mon Dec 19, 2016 12:25 pm
First Name: paul
Last Name: kenosky
Company Name: keystone auto
State / Province: Pennsylvania
Contact:

insert file full crash msgw

Post by pkenosky »

Hello,

Im adding a record to a file through profoundui, and when the file gets full profoundui crashes because the pgm goes into a msgw status due to a message waiting to be replyed from qsysopr to increase the file size.

How do you handle this so the pgm does not crash?

Thanks,
Paul Kenosky
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: insert file full crash msgw

Post by Scott Klement »

If you use our "batch session controller" (also called "rich display session controller") the job will always end if it reaches MSGW state. That is the way it works -- so your best bet is to try to prevent it from reaching that state. Write your programs so they don't go to MSGW state using MONITOR in RPG, MONMSG from CL, etc.

If its important that they are allowed to go to MSGW, then you may wish to run them inside Genie, which will allow MSGW status without problems.

Hope that helps
pkenosky
New User
Posts: 12
Joined: Mon Dec 19, 2016 12:25 pm
First Name: paul
Last Name: kenosky
Company Name: keystone auto
State / Province: Pennsylvania
Contact:

Re: insert file full crash msgw

Post by pkenosky »

I am using the BSC "batch session controller"...

If their is a record lock and I monitor it.. I can handle it in the on-error routine of the monitor which is great.

However, If i wrap a 'Write' or 'insert into ' command with a monitor, and the file is full it crashes on the client side and on the server side it NEVER goes into the on-error routine of the monitor, and it will continue until it finishes or it hits a EXFMT command.

Any suggestions on how to prevent this from going to MSGW?

Thanks,
Paul Kenosky
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: insert file full crash msgw

Post by Scott Klement »

You could change your file so that it doesn't run out of space for new records.

Most shops that I know of either set their file sizes large enough that this would only happen very rarely (unless something is wrong) or else they use *NOMAX so that it never happens.

Of course, you could always ask IBM to make a change so that it will send you a monitor-able message when this situation occurs.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests