One option is:
Use the BSFN readINI (B980055) to read value from the JDE.INI file.
First try:
szSectionName = 'NETWORK QUEUE SETTINGS'
szVariableName = 'OutputDirectory'
szValueForEntryDefault = <result>
if <result> is blank or null
then
szSectionName = 'INSTALL'
szVariableName = 'B9'
szValueForEntryDefault = <result>
append 'PrintQueue" to the right of <result> with the appropriate folder/directory delimiter (generally '/' or '\')