I am not a huge macro language expert but I suspect that the macro operand in question is not a "quoted character string" in HLASM-speak but rather an operand that happens to be a string of characters that happens to begin and end with a quote.
Are there BIFs to convert a string that happens to begin and end with a quote into a "quoted character string"? Charles -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Janko Kalinic Sent: Sunday, June 9, 2024 3:29 PM To: [email protected] Subject: Count attribute (K’) <IBM HLASM doc> Count attribute (K') Doubled quotes ('') in quoted character strings count as one character. Doubled ampersands (&&) in quoted character strings count as two characters. </IBM HLASM doc> Stmt Source Statement 1 TEST CSECT 2 MACRO M$TX - DEFINE AN ERROR/STATUS MESSAGE 3 &NAME M$TX &TEXT 4 LCLA &A 5 &A SETA K'&TEXT-2+4 6 &NAME DC AL2(&A,0),C&TEXT 7 MEND 8 USFG80 M$TX '0X8 PDSE DATA SET' 9+USFG80 DC AL2(21,0),C'0X8 PDSE DATA SET' 10 USFG81 M$TX 'X''08'' PDSE DATA SET' 11+USFG81 DC AL2(25,0),C'X''08'' PDSE DATA SET' 12 END Why is AL2(25,0) generated for USFG81. Shouldn't it be AL2(23,0)? Regards, Janko
