View previous topic :: View next topic
|
Author |
Message |
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Hi,
I am trying to do some condition check in the panel.
My code is like below
Code: |
IF (&CMPSTRT2 \=' ')
VER(&CMPEND2,NB) |
But while trying to execute this I am getting the below error message
Code: |
ISPP168
Panel 'MAINPANL' error
Invalid IF keyword operator found.
PYNPRIY,JHLOGPRC,11/09/26,13:34,1,ISR,PGM(ISRUDL) PARM(ISRUDLP) SCRNAME(D
Panel line where error was detected:
IF (&CMPSTRT2 \=' ') |
Here, by '\=' I am trying to use not equal to. But it seems syntactical error. What symbol should I use for this purposes? |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Why not use the "¬" symbol?
You may object that it is not found on your keyboard. However, it is a fairly trivial thing to have your terminal emulator produce it. There are many emulators, of course; but here is what I did do for mine (Micro Focus Rumba V8.0.0):
- Press <Ctrl-Shift-K> to get the Keyboard Mapping dialog.
- Click the "3270 Emulation Keys" button and select "Data Keys" from the drop-down menu.
- Scroll the glyph list on the left until you find the "¬".
- Click the "New" button on the right.
- Choose whatever key combination you like to produce it (I prefer <Shift-6>, as that was its position on an actual 3270 keyboard).
- Click on "OK".
So simple, even a software engineer can do it! |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
No such thing as a Rexx panel - it is an ISPF panel and you are invoking it via Rexx but you could use C, assembler, COBOL and PL/1 (possibly some others nowadays). |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Thanks. This is working now but it seems another problem is there.This time it is not giving me syntactical error. But the logic is not working.My requirement is if CMPSTRT2 field is not blank then CMPEND2 field can not be blank.
I used this way
Code: |
IF (&CMPSTRT2 ¬ '')
VER(&CMPEND2,NB) |
But this is not working |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
¬ is a "logical not".
To say "not equal" try
|
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Thanks.
This is working now. |
|
Back to top |
|
|
|