How can we check whether DB2 environment is available for use ?
-
"SUBCOM DSNDB2"
-
"ADDRESS DSNREXX"
-
"SUBCOM DSNREXX"
-
"ADDRESS DSNDB2"
C
Correct answer
Explanation
This question is DB2-mainframe specific. The SUBCOM command checks if a subsystem (like DSNREXX for DB2) is available for use. Option C ('SUBCOM DSNREXX') is the correct command to verify DB2 environment availability in a mainframe context. The other options either use incorrect command names or incorrect syntax.