[U2] How do I find the code?
>From the filename, I think it is Wizard screen generated code. If it is, there will be a W2 file that holds all the parameters for the screen generator with the ID W.A26.ISS.EMPLOYMENT . Even though there is a voc pointer, I suspect it is a subroutine called as part of sub screen. Noel -Original Message- From: Greg Coelho To: U2 Users List Sent: Tue, Mar 5, 2013 4:50 pm Subject: Re: [U2] How do I find the code? All, I am not versed in (PQ) PROC. Can anybody tell where I have to go to find the code for A26.ISS.EMPLOYMENT? :AE VOC A26.ISS.EMPLOYMENT 3 lines long. >>>>: P 0001: PQ 0002: HRUN WBP A26.ISS.EMPLOYMENT 0003: P Bottom at line 3. As Always, THANKS! Greg ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Locks in subroutines
Hi all, I am porting some code from D3 to Universe 10.1.11 on Windows (and then to Linux 10.2.x) I have a subroutine that does a READU on an item and leaves the lock set when it returns to the calling the program (The calling program will release the lock at a later stage). However, Universe is releasing the lock when it returns from subroutine. Is this a known feature and is there an option to turn off this behaviour? Cheers, Noel --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Locks in subroutines
Thank you to all that responded. Yes the file is being opened withing the subroutine and no, is not easy to change it to open the file higher in the food chain. It seems that D3 scopes the lock table according to the user that created the lock (the lock is released when they log off, if not explicitly released beforehand), whereas Universe scopes the lock at the life of the file variable used (as Brian and others suggested). Just another issue to work around when porting code from AP/D3. This piece of code was an add-on for a tacked-on extension to a system many years ago by persons unknown. It may be easier to open most of the files in the system at logon time and put them in a named common. Cheers, Noel Noel wrote: Hi all, I am porting some code from D3 to Universe 10.1.11 on Windows (and then to Linux 10.2.x) I have a subroutine that does a READU on an item and leaves the lock set when it returns to the calling the program (The calling program will release the lock at a later stage). However, Universe is releasing the lock when it returns from subroutine. Is this a known feature and is there an option to turn off this behaviour? Cheers, Noel --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/