View previous topic :: View next topic
|
Author |
Message |
RamsIBM
New User
Joined: 08 Jan 2007 Posts: 53 Location: Chennai
|
|
|
|
Hi There,
I would like to check group variable for spaces
25 XXXX-kkkk-000-DETAILS.
30 XXXX -aaaa-TREA-CODE PIC X(2).
30 XXXX-aaaa-BLCK-ADDR PIC X(1).
30 XXXX-aaaa-LETR-SORT PIC X(1).
30 XXXX-aaaa-PLAC-WORD PIC X(60).
30 XXXX-aaaa-DSGN PIC X(60).
30 XXXX-aaaa-ADDR-TTL PIC X(15).
30 XXXX-aaaa-TTL-ST PIC X(15).
Can you please check below statement is right
i.e If XXXX-kkkk-000-DETAILS is not space
statements
end-if |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest this change:
If XXXX-kkkk-000-DETAILS is not = spaces |
|
Back to top |
|
|
RamsIBM
New User
Joined: 08 Jan 2007 Posts: 53 Location: Chennai
|
|
|
|
Thanks... |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Is it OK to have any byte less than or equal to SPACE (X'00' through X'40')?
Then, you may want to change your test to NOT > SPACES, which will cover this byte-range....
Bill |
|
Back to top |
|
|
RamsIBM
New User
Joined: 08 Jan 2007 Posts: 53 Location: Chennai
|
|
|
|
Thanks!!
If XXXX-kkkk-000-DETAILS > spaces
is it above statment is valid for group check |
|
Back to top |
|
|
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
Yes Rams it is valid ... |
|
Back to top |
|
|
|