Number of Logic ID
Posted 24 April 2002 - 12:15 PM
Posted 24 April 2002 - 01:41 PM
Just want to clarify my question:
If I regen my SL function (which definitely has less than 255 or even less than 227 logic) and hit an error saying that the number of logic exceeds 255. And after that, I go to PRO-IV and found that the number of logic is 227, does this make sense?
Posted 24 April 2002 - 09:09 PM
What does this mean ?
It really depends on how Superlayer deletes the existing PRO-IV function, and how it constructs the new version. If it performs both tasks in what I would call a logical manner, starting at the top of the function, and moving down the various branches of the tree creating logical screens/reports/updates, file instances, and corresponding logics, then everything should be sweet. If, however, it were to create parts of the function in blocks (i.e. logics, file instances, global calls) then orphan records could have a big impact on the construction.
Disclaimer: The above are the musings of a sleepy man with only one cup of coffee on-board
Posted 25 April 2002 - 11:48 AM
I am just going to repeat what Richard said.
The count of logics includes Global Logics. You can only have 255 logics in total at the PRO-IV level.
Global logics do not have numbers, they have names. They can only be found by reading the logic code (or they can be linked to the SPECIAL CHECK field in a screen). There is no simple way for your user to count these unless they can check every line of logic code against a list of global logics.
Global Logics can themselves call global logics so you need to check every line of every global logic too.
I have a utility function that can list every Global Logic called by a Function but some of the coding is very specific to my environment (e.g. temporary files).
Has anyone else got a suitable utility?
Posted 25 April 2002 - 12:26 PM
p.s. You can function with only one cup of coffee? I am envious!
Posted 25 April 2002 - 09:45 PM
When removing portions of a SL function, I've found that deleting from the bottom up (i.e. removing lower level links, file instances etc before removing the parent LU or Window Call) does seem to reduce the number of instances of 'sick functions', but this could be pure coincidence.
p.s. with only one cup of coffee on board my functioning is limited, and I have to suspend breathing while thinking
Posted 30 April 2002 - 06:54 AM
But I am still a bit confused. Let me create the following senario:
1) I have a SL function which calls a lot of 'Global Logic', 'Global Funtion' etc.
2) When I regen this SL function, system will first DELETE my PRO-IV specification. (Am I correct?)
3) Then during the regenaration, system will then create the PRO-IV spec by adding all the SL spec, Global Logic, Global function etc. (at the same time, growing up the number of Logic), (Am I correct?)
4) So, if the number of Logic added together exceeds 255, then the regenration will stop and I will receive an SL regen error saying that the logic exceed limit, am I correct?
5) Now, my question is: When I received the SL regen error, I checked my PRO-IV specification and found that there are only 227 logic. (Of course my SL specification will have even smaller number of logic).
Does the above scenario makes sense?
Posted 30 April 2002 - 10:39 AM
Internally PRO-IV increases the number of logics. It does not add any more logic numbers to the function though.
So if you have a function with logic 001 and logic 180 and a global logic UPPER() then when you gen PRO-IV will need 3 logic 'slots' to be available but you will only ever see logics 001 and 180.
Posted 30 May 2002 - 04:17 PM
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users