IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR THEN



IBM's Command List programming language & Restructured Extended Executor

IKJ56533I STMT 252 - IF STMT CONTAINS NO EXPRESSION OR THEN

Postby durgam4 » Tue Jul 15, 2014 6:55 pm

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
durgam4
 
Posts: 9
Joined: Fri Jun 25, 2010 4:59 am
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby prino » Tue Jul 15, 2014 7:19 pm

This is not a REXX error, it's a CLIST error!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

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

Postby durgam4 » Tue Jul 15, 2014 7:30 pm

Robert, thanks for your reply.
how to get rid of this error
durgam4
 
Posts: 9
Joined: Fri Jun 25, 2010 4:59 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Tue Jul 15, 2014 7:37 pm

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).
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

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

Postby BillyBoyo » Tue Jul 15, 2014 7:55 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

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

Postby steve-myers » Tue Jul 15, 2014 8:23 pm

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.
steve-myers
Global moderator
 
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

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

Postby Pedro » Tue Jul 15, 2014 10:15 pm

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.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

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

Postby steve-myers » Tue Jul 15, 2014 11:19 pm

Pedro - Rexx/CLIST cannot read VBS. I made the assumption the data was offloaded SMF data rather than data in MAN data sets.
steve-myers
Global moderator
 
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

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

Postby Akatsukami » Wed Jul 16, 2014 12:13 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

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

Postby Pedro » Wed Jul 16, 2014 8:42 pm

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.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post