Connect and share knowledge within a single location that is structured and easy to search. I am using the following code to find out the address of the entry point for a file called linked list. The AddressOfEntryPoint is the relative virtual address of the entry point, not the raw offset in the file. It holds the address of the first instruction that will be executed when the program starts. Usually this is not the same as the beginning of the code section.
If you want to get the beginning of the code section, you should see the BaseOfCode field. The file is getting opened in memory that's why the address of entry point number is very big. The system provides available memory to file hence, base address always changes when file is opened in memory. If you want to access actual disk offset of AEP i. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Then you may end up with a mix of static and dynamic, so you always have to redo the all the loads involved when the module changes. There may be no clearcut answer to which leads to less maintenance for a given site, because it depends how all the stuff hangs together already.
If you have only five load modules representing your entire batch run, yet each contains several hundred modules, static might suit better. If all are basically stand-alone, just using modules for general-purpose stuff, then dynamic might suit better. If you have some dodgy old code with entry points in? The general statement is that dynamic calls may reduce future maintenance, but it depends upon the specifics.
The increased things to maintain and track indicate that maintenace for your specific situation would most likely be worsened by moving from static to dynamic calls, not to mention the initial overhead of adding the CANCEL statements to every program issuing a CALL.
The only thing worse than a statically CALLed system is some static and some dynamic. View previous topic :: :: View next topic. Similar Topics. Cobol COMP-2 fields getting scrambled Handling the numeric data in unstring If this was in production I would delete the file as I am finished with it.
But this is an example in test, I will leave it be for now. Next up is the procedure that does the checking if there are any differences between the two tables. Line Initialize the variable Rows with the number of elements in the data structure array Differences.
Line Fetch the same number of rows from the results as there are elements in the data structure array Differences , and place the results in Differences. This Table is like the "header", it will contain the description of the differences found. Lines 74 — This For group will write the data from the data structure array into the Table I just created. I cannot insert into a Table directly from a data structure array. If I move each element from the data structure array into a non-array data structure, I can insert that content into the Table.
I am not going to list all the columns for the other Table, just the ones that show the difference:. I would copy them to the IFS and then email them to myself. When creating this example program I did uncover a strange error. The first time I ran the program it worked without error. The next time I ran the program I received the following errors, and no results:.
I do not know if it the way my profile is configured on the server I use to build these examples. Or it is something more serious. If I signed off and back on again I could run the program again, for one time. If I submit this job to batch as it is a new job the program runs without error. I know I can get any changes to the Exit points and program from the system audit journal.
But I would not have had the opportunity to show these two new Views in action. This article was written for IBM i 7. Post a Comment To prevent "comment spam" all comments are moderated. Learn about this website's comments policy here.
Some people have reported that they cannot post a comment using certain computers and browsers. If this is you feel free to use the Contact Form to send me the comment and I will post it for you, please include the title of the post so I know which one to post the comment to.
0コメント