Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
RamsIBM

New User


Joined: 08 Jan 2007
Posts: 53
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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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

New User


Joined: 08 Jan 2007
Posts: 53
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

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, 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

New User


Joined: 08 Jan 2007
Posts: 53
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

Active Member


Joined: 13 Feb 2004
Posts: 551
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts Need Help with : IFTHEN(WHEN=GROUP) Sumanta_89 DFSORT/ICETOOL 1 Wed Apr 19, 2017 5:23 pm
No new posts Group elements using ICETOOL Learncoholic DFSORT/ICETOOL 2 Fri Apr 14, 2017 11:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us