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
 

 

Meaning of Comma (,) in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
charlessxavier

New User


Joined: 12 Sep 2010
Posts: 3
Location: India

PostPosted: Thu Mar 08, 2012 7:54 pm    Post subject: Meaning of Comma (,) in Easytrieve
Reply with quote

Hello all,

I just encountered this code in one of my easytrieve programs

IF HBFM = 1, 7
WACK = WACK + 1
GO TO JOB
END-IF


Which is asking the control to skip the record and go to job...

But what does a COMMA (,) mean here ? is it OR ?

please help me with this
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Thu Mar 08, 2012 8:52 pm    Post subject: Reply to: Meaning of Comma (,) in Easytrieve
Reply with quote

WACK? OK, I'll leave it. Probably not your choice.

Have a look at "Field Series Condition" in your manual.

Yes, it is like an OR as far as the values in series are concerned. Or multiple identical IFs, except with a different value to match.

I've not used it, for the reason you have discovered. Someone looks at the code and just doesn't plain understand it. After a while, you realise it must be an "OR" of some sort, but not convinced until you hit the manual.

Easytrieve doesn't have an equivalent of 88s other than this. 88s is how you'd want to do it in Cobol.

I'd code out the ORs. At least any reader will understand when they see the code. I don't know what would happen if you have, say, three values but you miss the comma out for one of them. You could try, and let us know :-)
Back to top
View user's profile Send private message
charlessxavier

New User


Joined: 12 Sep 2010
Posts: 3
Location: India

PostPosted: Mon Mar 12, 2012 11:27 am    Post subject:
Reply with quote

Thanks a lot bill,


WACK is a variable for counting the number of records which satisfies the given condition, it is kind of acknowledgment variable...

And so if there are multiple values separated by Comas.. you mean to say the condition would be "either of" the values given.. right ?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Mon Mar 12, 2012 12:41 pm    Post subject: Reply to: Meaning of Comma (,) in Easytrieve
Reply with quote

Yes. As you suspected, it is like an OR. Either of two values or any of more than two values and the test will be true.
Back to top
View user's profile Send private message
charlessxavier

New User


Joined: 12 Sep 2010
Posts: 3
Location: India

PostPosted: Mon Mar 12, 2012 12:44 pm    Post subject:
Reply with quote

Okay !!


Thanks a lot for helping out icon_smile.gif
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts WER416B Error meaning kbnkb2 SYNCSORT 9 Sat Jul 16, 2016 7:28 pm


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