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 

can INVALID KEY be specified with READ NEXT

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


Joined: 26 Mar 2007
Posts: 20
Topics: 7
Location: india

PostPosted: Fri May 04, 2007 5:54 am    Post subject: can INVALID KEY be specified with READ NEXT Reply with quote

hi

i am using the following code.

Code:

READ  READ-RECONCILE NEXT                     
      INVALID KEY                             
      MOVE 'Y'            TO SW-NO-MATCHING-REC
END-READ.                                     


i get the following error msg in SYSPRINT

Code:

    READ  READ-RECONCILE NEXT                                       
          INVALID KEY                                               
                                                                   
The "NEXT" phrase was specified with the "INVALID KEY" phrase.  The
"NEXT" phrase was discarded.                                       
                                                                   
          MOVE 'Y'            TO SW-NO-MATCHING-REC                 
    END-READ.                                                       


plz tell me whether invalid key cannot be used with read next or i have made some other error in the code.
_________________
navhin
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri May 04, 2007 6:50 am    Post subject: Reply with quote

navhin,

Read this

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/6.2.28?DT=20020920180651

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
navhin
Beginner


Joined: 26 Mar 2007
Posts: 20
Topics: 7
Location: india

PostPosted: Fri May 04, 2007 8:43 am    Post subject: Reply with quote

kolusu,

thankz.
i understood invalid key cannot be used with next.
_________________
navhin
Back to top
View user's profile Send private message
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