ERROR CCN3275 in IBM sample code



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

ERROR CCN3275 in IBM sample code

Postby kklein9 » Tue May 26, 2009 6:23 pm

I've never compiled a C program unde z/os before. These are the error messages I am getting:


ERROR CCN3275 KQKTEMP.$TSO.WORK(GIMHC370):2 Unexpected text '/' encountered.
ERROR CCN3275 KQKTEMP.$TSO.WORK(GIMHC370):4 Unexpected text '/' encountered.
ERROR CCN3275 KQKTEMP.$TSO.WORK(GIMHC370):6 Unexpected text '/' encountered.

This is the code. There are only comments before these lines.

000028 /********************************************************************/           .
000029 #define LEN_ETYPE        12                                                      .
000030 #define LEN_MSG          256                                                     .
000031 typedef _Packed struct QUERY_PARMS  /* Parameters for QUERY command */           .
000032 {                                                                                .
000033   char    *csi;                     /* PTR to global CSI dataset    */           .
000034   long    csilen;                   /* Length of data set name      */           .
000035   char    *zone;                    /* PTR to list of zones         */           .
000036   long    zonelen;                  /* Length of zone list          */           .
000037   char    *entrytype;               /* PTR to list of entries       */           .


This is a sample program supplied from IBM so I don't understand why it is getting the syntax errors.
mainframe AND p-series expert
kklein9
 
Posts: 1
Joined: Tue May 26, 2009 6:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ERROR CCN3275 in IBM sample code

Postby dick scherrer » Wed May 27, 2009 3:27 am

Hello and welcome to the forum,

Suggest you try removing line 28 (and any others like it) and whatever that character is to the far right. . .

Please note that your code had been "Coded" (using the code tag). This preserves alignment and improves readability.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post