Prompt Details
Model
(gemini-3.1-pro)
Token size
249
Example input
[PASTE YOUR PL/I CODE HERE]: UPDATE_BAL: PROCEDURE(ACCT_NO, TRANS_AMT, STATUS) OPTIONS(MAIN); DECLARE ACCT_NO CHAR(10); DECLARE TRANS_AMT FIXED DEC(9,2); DECLARE STATUS FIXED BIN(15); DECLARE MSTR_BAL FIXED DEC(11,2) STATIC; DECLARE LIMIT_AMT FIXED DEC(11,2) VALUE(1000000.00); IF TRANS_AMT <= 0 THEN DO; STATUS = 8; RETURN; END; MSTR_BAL = MSTR_BAL + TRANS_AMT; IF MSTR_BAL > LIMIT_AMT THEN DO; STATUS = 4; MSTR_BAL = MSTR_BAL - TRANS_AMT; END; ELSE DO; STATUS = 0; END; RETURN; END UPDATE_BAL;
Example output
Example 1: Calculation & Validation
Business Objective: Validates the transaction amount and updates the account balance. It includes a limit check to prevent the balance from exceeding a predefined threshold.
Data Definitions: TRANS_AMT (FIXED DEC 9,2) as input, MSTR_BAL (FIXED DEC 11,2) as a static persistent variable.
Modernization Risk: The STATIC storage class in PL/I requires careful mapping to persistent database fields or thread-safe singleton patterns in Java/Python to ensure data consistency.
By purchasing this prompt, you agree to our terms of service
GEMINI-3.1-PRO
Transform legacy PL/I code into professional business specifications instantly. Perfect for IBM z/OS modernization projects.
This analyzer extracts:
- Data Dictionary: Maps legacy types to Java/Python (BigDecimal etc.)
- Logic Flow: Decodes IF/SELECT/GOTO into clear steps.
- Migration Risks: Identifies STATIC variables and concurrency issues.
- Pseudocode: Bridging the gap for modern developers.
Save hundreds of hours on manual code discovery and documentation. Ideal for PMs and Architects.
...more
Added over 1 month ago
