Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us