![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have used a routine previously suggested called WhatHaveIGot, which determines the type of a variable and if it is a file variable it returns the name of the file. This is an excellant routine BUT... The description of the user exit "U90" says that it returns the file number in FOF of the last file process performed in the program prior to "U90". Unfortunately I have just been advised that any FSI file numbers are stored in the FSIDM,FILEOFFILES file and not FOF in DM. The "U90" routine returns blank for these files - I assume that is because it only checks the DM FOF. Is there any user exits that check the FSIDM FILEOFFILES? Just had a thought, I will check if the U90 is able to check the FOF (q-pointer) when it points to the FSIDM file. Best regards, Neil. Neil Charrington S C Systems T: +44 1564 777011 F: +44 1564 777454 W: www.sc-sys.com |
#3
| |||
| |||
|
|
I have used a routine previously suggested called WhatHaveIGot, which determines the type of a variable and if it is a file variable it returns the name of the file. This is an excellant routine BUT... The description of the user exit "U90" says that it returns the file number in FOF of the last file process performed in the program prior to "U90". Unfortunately I have just been advised that any FSI file numbers are stored in the FSIDM,FILEOFFILES file and not FOF in DM. The "U90" routine returns blank for these files - I assume that is because it only checks the DM FOF. Is there any user exits that check the FSIDM FILEOFFILES? Just had a thought, I will check if the U90 is able to check the FOF (q-pointer) when it points to the FSIDM file. Best regards, Neil. Neil Charrington S C Systems T: +44 1564 777011 F: +44 1564 777454 W: www.sc-sys.com |
#4
| |||
| |||
|
|
I'm sorry, but if you have a program and you don't know what the variables are for, maybe you need to think about a career in the food service industry. |
#5
| |||
| |||
|
|
Every time you access a VME file, the system does so by loading three fields in your PCB: BASE, MODULO, SEPARATION. Then it calls Retix and Hash and find where your item is. U90 works, because the instruction before that somehow massaged BASE. By definition, FSI files don't have a "base" because they are not really stored in frames. There is no base frame so this can't work. Thanks for your explanation about the methodology for D3 file handling |
|
I thought the original post only wanted to know IF the variable in question was a file variable, not necessarily to which file it's attached. I got the impression they didn't really know WHAT the variable was and werr just trying to find some code trick to keep from having to figure it out. If they need to know which file it's attached to, the next question is how often do you need to know? Once, or every time you run the program. |
|
I'm sorry, but if you have a program and you don't know what the variables are for, maybe you need to think about a career in the food service industry. |
![]() |
| Thread Tools | |
| Display Modes | |
| |