MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Would this make sense?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Thu Feb 07, 2008 11:03 am    Post subject: Would this make sense? Reply with quote

Hi,

Code:

05  S-NEW-XXXER-SW                  PIC X(01) VALUE 'N'.
    88  S-NEW-XXXER                           VALUE 'Y'.
    88  S-NOT-NEW-XXXER                       VALUE 'N'.


Code:

IF  S-XXXER-NOT-FOUND                                     
AND NOT S-NEW-XXXER                                       
   MOVE SPACES                  TO  W-XXX-XXXER-KBR-1-4   
   MOVE W-XXX-XXXER-KBR         TO  XX-XXX-I-XXX-XXXER-KBR
                                                         
   PERFORM S1350-CALL-LMNS2222-XXX-XXRV                   


Would the above switch declaration and the usage of them as shown make sense?

I thought the "AND NOT S-NEW-XXXER" was not necessary.

Any other thoughts to share please?

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Thu Feb 07, 2008 2:17 pm    Post subject: Reply with quote

It makes sense to me simply because, as coded, the IF statement is checking the values of 2 different fields. Both must be true for the "true" part of the IF to be executed.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Tue Mar 11, 2008 6:56 am    Post subject: Reply with quote

Thanks Terry......

My mistake.......... Sad

sorry....... Embarassed bonk
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group