Troubleshooting
Problem
A DXL script that uses a forward reference runs correctly in IBM Engineering Requirement Management DOORS but when run in batch mode fails with the error "DOORS Report: CreateProcess failed".
Cause
This issue is identified as a permanent restriction under APAR PK91463.
Resolving The Problem
WORKAROUND:
Restructure the code to define forward references outside of the global context.
For example, consider the following code examples:
1. No forward reference
void fn(string)
void fn(string s) {
print s
}
fn("Hello World")
Output:
Hello World
Press return to exit DOORS.
2. (Failing) forward reference
void fn(string)
fn("Hello World")
void fn(string s) {
print s
}
Output:
-R-E- DXL: <C:\<PATH>\file.dxl:linenumber forward reference not resolved
Press return to exit DOORS.
3. Workaround: forward reference encapsulated
{
void fn(string)
void main() {
fn("Hello World")
}
main()
void fn(string s) {
print s
}
}
Output:
Hello World
Press return to exit DOORS.
Related Information
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSKR2T","label":"IBM Engineering Requirements Management DOORS"},"ARM Category":[{"code":"a8m50000000CimmAAC","label":"DOORS-\u003EDXL"}],"ARM Case Number":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
25 August 2023
UID
swg21509412