Skip to content
Marc & Structures
Index

Save your progress

Enter your email and we will send a secure sign-in link. There is no password and the first link creates your account.

Error hunt ~6 min · ~26 min remaining

Diagnose macros

Identify incorrect paths, out-of-contract arguments, and incorrectly propagated KEYOPT settings.

Bug hunt

Open 08_bug_hunt.mac. It contains five deliberate defects. Complete the table for each one:

ErrorSymptomCheckCauseMinimum fix
1Immediate /EOF/STATUS,PARMARG1 ≤ 0Correct the *USE contract
2Macro not found.out / pathIncorrect name or folderCopy all four .mac files to the cwd
3Zero loadn_tip=0Empty componentReview CM and SELTOL
4Nonsensical equilibriumActive selectionResidual selectionALLSEL between phases
5Garbage valuesn_setsExtraction without SETActivate the set before *GET

Professional incident

Incident M08: diagnose before editing

What you must demonstrate

The macro fails in a clean directory.

Incident file

This is not your session template — it is a broken script for diagnosis practice.

Download 08_bug_hunt.mac

Steps

  1. 1 Run the broken script in a clean folder.
  2. 2 Preserve the original .out.
  3. 3 Write one causal hypothesis and make one change.
  4. 4 Compare evidence before and after.
Evidence to retain

Your reflection stays in this browser.

Graduated hints

1 · Concept hint

Find the first broken contract.

2 · Command hint

Inspect state related to /CLEAR, /INPUT, and *CFOPEN.

3 · Explained solution

Compare with the module deliverable and explain why the corrected state restores the contract.

After running the script, reviewing the .out, and saving evidence, answer:

Quick check

/INPUT cannot find 08_build.mac. What should you check first?