Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Group condition checking

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
RamsIBM

Active User


Joined: 08 Jan 2007
Posts: 52
Location: Chennai

PostPosted: Wed Jul 16, 2008 2:32 am    Post subject: Group condition checking
Reply with quote

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
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8732
Location: 221 B Baker St

PostPosted: Wed Jul 16, 2008 2:42 am    Post subject:
Reply with quote

Hello,

Suggest this change:
If XXXX-kkkk-000-DETAILS is not = spaces
Back to top
View user's profile Send private message
RamsIBM

Active User


Joined: 08 Jan 2007
Posts: 52
Location: Chennai

PostPosted: Wed Jul 16, 2008 3:12 am    Post subject:
Reply with quote

Thanks...
Back to top
View user's profile Send private message
Bill O'Boyle

Senior Member


Joined: 14 Jan 2008
Posts: 345
Location: Orlando, FL, USA

PostPosted: Wed Jul 16, 2008 5:05 am    Post subject: Re: Group condition checking
Reply with quote

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
View user's profile Send private message
RamsIBM

Active User


Joined: 08 Jan 2007
Posts: 52
Location: Chennai

PostPosted: Thu Jul 17, 2008 12:10 am    Post subject:
Reply with quote

Thanks!!

If XXXX-kkkk-000-DETAILS > spaces

is it above statment is valid for group check
Back to top
View user's profile Send private message
ashimer

Senior Member


Joined: 13 Feb 2004
Posts: 360
Location: Bangalore

PostPosted: Thu Jul 17, 2008 4:55 pm    Post subject:
Reply with quote

Yes Rams it is valid ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1