Page 1 of 2

IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR THEN

PostPosted: Tue Jul 15, 2014 6:55 pm
by durgam4
I am getting error with the IF statement while executing rexx under IKJEFT1B.

the statement is :
000252 IF ( SMF30ION = 1 & SMF30IOF > 0 & SMF30ILN > 0 ,
000253 & SMF30PON = 1 & SMF30POF > 0 & SMF30PLN > 0 ) THEN DO

Error:
IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR THEN KEYWORD

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 7:19 pm
by prino
This is not a REXX error, it's a CLIST error!

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 7:30 pm
by durgam4
Robert, thanks for your reply.
how to get rid of this error

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 7:37 pm
by Robert Sample
If you look in the CLIST manual in the TSO bookshelf, you will find that continuing a line requires a special character at the end of the line to be continued. You do not have that character, hence you are being told you do not have a THEN on your IF (which you don't since the line was not continued).

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 7:55 pm
by BillyBoyo
And if it is supposed to be Rexx, not CLIST, then you'll need to do something to ensure that the correct interpreter gets used.

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 8:23 pm
by steve-myers
The whole issue is moot. The field names in the alleged statement are in raw SMF data. Neither CLIST or Rexx can read raw SMF data.

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 10:15 pm
by Pedro
Neither CLIST or Rexx can read raw SMF data.

I think SMF data can be offloaded using the IFASMFDP utility. The data is then in a VBS data set, which rexx will be able to read.


you'll need to do something to ensure that the correct interpreter gets used.

Hint, the problem is probably in the first line of the program. The first line tells the system whether it is a rexx program or not.

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Tue Jul 15, 2014 11:19 pm
by steve-myers
Pedro - Rexx/CLIST cannot read VBS. I made the assumption the data was offloaded SMF data rather than data in MAN data sets.

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Wed Jul 16, 2014 12:13 am
by Akatsukami
I believe that is no longer the case in z/OS 2.1; there are also third-party tools that can do this in earlier versions. Of course, we do not know if these things are available to durgam4.

Re: IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR T

PostPosted: Wed Jul 16, 2014 8:42 pm
by Pedro
Prior to z/OS 2.1, you can use IEBGENER to copy the VBS to a VB data set. And then read the VB file with rexx. Yes, you might lose some really long records, but there are not that many of them.