One way to hit the error: 1. ISPF 3.3 2. Enter more than 8 characters in the command line 3. PF3
They must be VDEFINEing ZOPT as 8 bytes (why? *), so it gets a data truncation error when it tries to store it in the function pool But, I thought when I hit it the first time I only entered one wrong character. * if ZOPT is only used in the panel it shouldn't need to be defined to the driving program at all, then it wouldn't have a size limit -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Schmitt, Michael Sent: Friday, April 18, 2025 11:36 AM To: [email protected] Subject: ISPF 3.3 panel error on ZOPT variable I was using ISPF 3.3 on z/OS 2.5 and received a dialog error: ***** Dialog Error ***** - Application(ISR); Function Module (ISRUMC); Service(DISPLAY) Panel 'ISRUMC1' error - Conversion or truncation problem found while attempting to store variable 'ZOPT'. I'm trying to figure out how to recreate the error so I can have a case opened with IBM. The problem is I don't remember exactly what I did, even immediately after I hit the error. I know I accidently typed something I shouldn't, and then, I think, hit the error on PF3 from the panel. In the panel code the only reference to ZOPT is in this code (not showing the whole panel, just relevant lines): )INIT &ZCMD = &ZOPT )PROC VER(&ZCMD,NB,LIST,M,C,MP,CP) &ZOPT = &ZCMD I think what it is doing is saving the entered ZCMD (M, C, MP, CP) so that when you return to the starting panel after executing the move or copy, it restores that to the ZCMD field. What exactly does the "Conversion or truncation problem found while attempting to store variable" error mean? Is "storing" the variable mean it can't save it in ZCMD? Or in the function pool? (The panel isn't a menu, and has no VPUT of ZOPT, so it shouldn't be storing it in the shared or profile pools.) Note that in ISPF: * You still execute the )PROC when you PF3 * Failing a VER doesn't stop execution of code So it is possible for a value of ZCMD that is not M, C, MP, or CP to get put in ZOPT. If I knew what kind of value would generate the error then I could figure out how to make that happen. ___________________________________________________ Michael Schmitt | DXC Apps Development | MassMutual (737) 910-8248 | [email protected] ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
