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
 
How to give the condition variable value?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Wed Mar 12, 2008 9:42 pm    Post subject: How to give the condition variable value?
Reply with quote

I have two byte character variable like

05 ADDRESS-VAR PIC X(02) VALUE SPACES.
88 ADDRESS-NOT-PRSNT VALUE SPACES.
88 ADDRESS-PRSNT VALUE ????????????

I want the condition variable for checking that address is present or not present.

I can able to give spaces if there is no address, but how can i give the address-present variable value. It can come any combination of two alphabets.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Mar 12, 2008 10:06 pm    Post subject:
Reply with quote

IF NOT ADDRESS-NOT-PRSNT

The values for condition names are not variables.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Mar 12, 2008 10:54 pm    Post subject:
Reply with quote

Hi,

Does this solves Your problem?
Code:
05 ADDRESS-VAR PIC X(02) VALUE SPACES.
88 ADDRESS-NOT-PRSNT VALUE 'YY'.
88 ADDRESS-PRSNT VALUE 'NN'

Further, for this
Quote:
It can come any combination of two alphabets.
If You are checking just the 'presence of address', above definitions should work. Otherwise if you have a specific processing for each unique 'pattern' of alphabets (pattrens such as 'AB' is different than 'BA') then all such permutations (26P2, old maths) should be present at 88-level.
Back to top
View user's profile Send private message
Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Wed Mar 12, 2008 11:45 pm    Post subject: Reply to: How to give the condition variable value?
Reply with quote

Thanks Giegerich and Anju.

Giegerich we cant use NOT verb. This is voilating our coading standard.

Anju What is that two alphabets are state code. So we cant use YY or NN.
I didn't get the the proper meaing of all such permutations (26P2, old maths). What is that.....
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Mar 13, 2008 12:13 am    Post subject:
Reply with quote

IF ADDRESS-NOT-PRSNT
CONTINUE
ELSE

END-IF.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Mar 13, 2008 2:24 am    Post subject:
Reply with quote

Hello,

I'm Anuj not Anju..grin.. icon_evil.gif

Quote:
that two alphabets are state code
ok, then try on Craig's suggestion.

By permutation i meant AB, BA, AC, AD..BA,BC,BD..etc.... In 26P2, '26' shoubd be percepted as 'superscript' & '3' as subscript, I cann't show it that way here. This is the way they use it in Mathematics here in India & this is called as Permutaion-combination Chapter of Maths' book here, if people call it something else in other parts of world, I'm sorry I'm not aware of that. Further, 'P' is meant for Permutation, Permutaion is an old method to get all the arrangements when one need to select only some valuses (here 2 alphabets) out of many (26 letters of english aplhabets).

I hope You got the meaning of 26P2, if not leave it, & proceed with suggestion above. Your this sentence made me to think this
Quote:
It can come any combination of two alphabets.
I thought for every unique state code you've to execute something different.
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 BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm

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