Rexx Error

Note: I'm taking a class.

I'm trying to change this code such that it gives information for both sent and received the first time and just sent the second time.

What am I doing wrong and why?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you receiving any error messages?

If so what are they?
Michel PlungjanIT ExpertCommented:
You mean

   when b_out_diff || b_in_diff = '0' then call in_data_only            
   when b_out_diff || b_in_diff = '1' then call in_out_data            

several things makes me distrust this

1. semicolon after the select
2. no test before the or

I would expect

   when b_out_diff = '1' || b_in_diff = '0' then call in_data_only            
   when b_out_diff ='0' || b_in_diff = '1' then call in_out_data            

or similar

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mplungjan is correct about removing the semicolon after the select.

However I am confused on the use of the double vertical bars.  I have always used the double vertical bars for concatenating strings and I have always used a single vertical bar for "OR".

Now, 99% of my REXX coding has been in NetView for z/OS and I have done very little REXX coding in TSO.  So it could be a difference in how TSO and NetView interpret the vertical bars.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Michel PlungjanIT ExpertCommented:

Too long with javascript

You are correct
Michel PlungjanIT ExpertCommented:
So it WAS concatenation

   when b_out_diff || b_in_diff = '00' then call no_data_movement      
   when b_out_diff || b_in_diff = '01' then call in_data_only          
   when b_out_diff || b_in_diff = '10' then call out_data_only          
   when b_out_diff || b_in_diff = '11' then call in_out_data            
JCW2Author Commented:
Thank you for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mainframe Languages

From novice to tech pro — start learning today.