works fine with definition in OPTFILE DD: //COMPILE EXEC PGM=CCNDRVR, // PARM=('/CXX OPTFILE(DD:CCOPT)') //CCOPT DD DATA,DLM=## DEFINE(MYSTRING="MICHAEL") SEARCH('CEE.SCEEH.+','CBC.SCLBH.+') OPTIMIZE(2) ##
trying same with parm card, I also failed with messages you described. Cheers Michael Von: Mark Hammack <mark.hamm...@gmail.com> An: IBM-MAIN@LISTSERV.UA.EDU Datum: 2013-08-30 16:15 Betreff: C question (IBM specific) Gesendet von: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> I would like to be able to pass a string to the IBM C/C++ compiler to include in a program. I have tried every way I can think of to use the DEFINE() compiler option but can't make it work. This is what I would like to do: ... // EXEC PGM=CCNDRVR,PARM=('...DEFINE(MYSTRING=TEST)') ... In the program -- ... #pragma comment(copyright, "This program was compiled on " __DATE__ " with the " MYSTRING " option"); ... The compiler gets an error that it expected ")" but found "TEST" (it likes __DATE__ just fine). I have tried DEFINE(MYSTRING='"TEST"') (with the set of quotes), using another macro: #define test_string(option) #option but test_string(MYSTRING) generates "MYSTRING" not "TEST". ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ Basler Securitas Versicherungs-Aktiengesellschaft | Sitz der Gesellschaft: Bad Homburg v.d.H. | Amtsgericht Bad Homburg v.d.H., HRB 9357 | USt-ID-Nr. DE 276021973 | Vorstand: Jan De Meulder - Vorsitzender, Markus Jost, Dr. Jürg Schiltknecht, Dr. Alexander Tourneau, Dr. Christoph Wetzel | Aufsichtsratsvorsitzender: Dr. Martin Strobel | Basler Straße 4, 61345 Bad Homburg v.d.H. | Basler Lebensversicherungs-AG | Sitz der Gesellschaft: Hamburg | Amtsgericht Hamburg, HRB 4659 | Ust-ID-Nr. DE 276021973 | Vorstand: Jan De Meulder - Vorsitzender, Markus Jost, Dr. Jürg Schiltknecht, Dr. Alexander Tourneau, Dr. Christoph Wetzel | Aufsichtsratsvorsitzender: Dr. Martin Strobel | Ludwig-Erhard-Straße 22, 20459 Hamburg Basler Leben AG | Aktiengesellschaft nach Schweizer Recht | Deutsche Zweigniederlassung: Basler Leben AG Direktion für Deutschland | Amtsgericht Bad Homburg v.d.H., HRB 1229 | Ust-ID-Nr. DE 281452875 | Hauptbevollmächtigter für Deutschland: Jan De Meulder | Basler Straße 4, 61345 Bad Homburg v.d.H. | Basler Versicherung AG | Aktiengesellschaft nach Schweizer Recht | Deutsche Zweigniederlassung: Basler Versicherung AG Direktion für Deutschland | Amtsgericht Bad Homburg v.d.H., HRB 1228 | USt-ID-Nr. DE 281452875 | Hauptbevollmächtigter für Deutschland: Jan De Meulder | Basler Straße 4, 61345 Bad Homburg v.d.H. | Deutscher Ring Sachversicherungs-AG | Amtsgericht Hamburg, HRB 7144 | USt-ID-Nr. 276021973 | Vorstand: Jan De Meulder - Vorsitzender, Markus Jost, Dr. Jürg Schiltknecht, Dr. Alexander Tourneau, Dr. Christoph Wetzel | Aufsichtsratsvorsitzender: Dr. Martin Strobel | Ludwig-Erhard-Straße 22, 20459 Hamburg ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN