- Universal Display Error Job Log.pdf
- (16.57 KiB) Downloaded 248 times
Universal PUIMAPP Question
-
- Experienced User
- Posts: 116
- Joined: Wed Sep 05, 2012 11:14 am
- First Name: Eric
- Last Name: Hill
- Company Name: Integrated Corporate Solutions
- Phone: 256-760-8239
- Address 1: 501 S Wood Avenue
- City: Florence
- State / Province: Alabama
- Zip / Postal Code: 35630
- Country: United States
- Contact:
Re: Universal PUIMAPP Question
Attached is the job log....
-
- 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: Universal PUIMAPP Question
Eric,
The SyncJob() routine does not synchronize the system portion of the library list. (It never has -- including when called from RPGsp...) It only syncrhonizes the user portion of the library list.
Your job log shows it doing this correctly.
So it looks like everything is working properly. The only caveat is that the Universal session controller is not putting PROFOUNDUI into the system portion of the library list the way that the Rich Display session controller does. This is perhaps a poor design choice, and might be something we change in a future release. But, it's not exactly a bug... just something we did a bit differently in this case.
But, earlier in the thread, you made it sound like it wasn't synchronizing the libraries at all... this doesn't seem to be the case.
The remaining mystery here is the ICSUI library. In one of your posts you show this being in the system portion of the library list -- how is this being set? If this is in the system value for the system portion of the library list, it should always be in all jobs... so I can only guess that your Rich Display job is running the CHGSYSLIBL command or similar -- but, if this is the case, it should also be missing from the RPGsp programs that you use.
The SyncJob() routine does not synchronize the system portion of the library list. (It never has -- including when called from RPGsp...) It only syncrhonizes the user portion of the library list.
Your job log shows it doing this correctly.
Code: Select all
CPC2198 Completion 00 11/20/14 14:04:31.215196 QLICHLLE QSYS 01A3 PUISYNCB PROFOUNDUI *STMT
From user . . . . . . . . . : ERIC
To module . . . . . . . . . : PUISYNCB
To procedure . . . . . . . : sync_SetLibraryList
Statement . . . . . . . . . : 108
Message . . . . : Current library changed to TESTICS.
Cause . . . . . : The current library in the library list was changed to
TESTICS.
CPC2196 Completion 00 11/20/14 14:04:31.215277 QLICUSRL QSYS 0114 PUISYNCB PROFOUNDUI *STMT
From user . . . . . . . . . : ERIC
To module . . . . . . . . . : PUISYNCB
To procedure . . . . . . . : sync_SetLibraryList
Statement . . . . . . . . . : 140
Message . . . . : Library ICS added to library list.
... etc ...
But, earlier in the thread, you made it sound like it wasn't synchronizing the libraries at all... this doesn't seem to be the case.
The remaining mystery here is the ICSUI library. In one of your posts you show this being in the system portion of the library list -- how is this being set? If this is in the system value for the system portion of the library list, it should always be in all jobs... so I can only guess that your Rich Display job is running the CHGSYSLIBL command or similar -- but, if this is the case, it should also be missing from the RPGsp programs that you use.
-
- Experienced User
- Posts: 116
- Joined: Wed Sep 05, 2012 11:14 am
- First Name: Eric
- Last Name: Hill
- Company Name: Integrated Corporate Solutions
- Phone: 256-760-8239
- Address 1: 501 S Wood Avenue
- City: Florence
- State / Province: Alabama
- Zip / Postal Code: 35630
- Country: United States
- Contact:
Re: Universal PUIMAPP Question
Our initial programs setup the system portion of the library list as well as the current and user sections. ICSUI is where all our PUI displays and programs reside and is added to the system portion of the library list at signon time.
I think in all my testing of this somewhere along the line the file used in my Universal Display program showed as not found and I may have jumped to a wrong conclusion about the SYNCJOB
How can I determine and/or how do I change the libraries used when SYNCJOB is used? I think our server expert here at one time knew how that worked but he is out for the week and I was wondering if I could add/remove libraries. If I remember correctly (big if), it has something to do with the Apache setup?
Thanks!!!!!
I think in all my testing of this somewhere along the line the file used in my Universal Display program showed as not found and I may have jumped to a wrong conclusion about the SYNCJOB
How can I determine and/or how do I change the libraries used when SYNCJOB is used? I think our server expert here at one time knew how that worked but he is out for the week and I was wondering if I could add/remove libraries. If I remember correctly (big if), it has something to do with the Apache setup?
Thanks!!!!!
-
- 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: Universal PUIMAPP Question
SyncJob() changes the job to run under the same user profile, ASP group, current library and (user portion of) library list as the Rich Display program.
This is used by Profound UI when running SQL statements for database-driven widgets as well as when you use it for your 'custom url' web services. The idea is that the 'main' RPG program might have set any sort of custom library list. When it invokes SQL statements or web services, it's expected that they use the same authorities and library list as the main program that called them. SyncJob() is what makes that happen.
So, if you want to change the libraries that SyncJob() sets in the library list, you should change the libraries in the 'main' (Rich Display) job.
This is used by Profound UI when running SQL statements for database-driven widgets as well as when you use it for your 'custom url' web services. The idea is that the 'main' RPG program might have set any sort of custom library list. When it invokes SQL statements or web services, it's expected that they use the same authorities and library list as the main program that called them. SyncJob() is what makes that happen.
So, if you want to change the libraries that SyncJob() sets in the library list, you should change the libraries in the 'main' (Rich Display) job.
-
- Experienced User
- Posts: 116
- Joined: Wed Sep 05, 2012 11:14 am
- First Name: Eric
- Last Name: Hill
- Company Name: Integrated Corporate Solutions
- Phone: 256-760-8239
- Address 1: 501 S Wood Avenue
- City: Florence
- State / Province: Alabama
- Zip / Postal Code: 35630
- Country: United States
- Contact:
Re: Universal PUIMAPP Question
Ah...gotcha. I think I know what we need to do now to get the library lists to match up.
Thanks for the education!!!! :-)
Thanks for the education!!!! :-)
Who is online
Users browsing this forum: No registered users and 0 guests