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 

Updating a VSAM file using a flat file as input with an EZT
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
samlwho
Beginner


Joined: 08 Feb 2007
Posts: 21
Topics: 2

PostPosted: Wed Apr 18, 2007 8:14 am    Post subject: Reply with quote

vkphani,

I typically code GET & PUT in EZT versus READ & WRITE. Maybe this will work for you:

Code:

FILE VSAM VS UPDATE
VSAM1            1     17  N
VSAM2            20    3   A
*
FILE FLAT
FLAT1              1     17  N
FLAT2              20    3   A
*
FILE OUTPUT
VSAM2-OUT      1     17  N


JOB INPUT NULL

GET VSAM
IF EOF VSAM
    STOP
ELSE
   GET FLAT
    IF EOF FLAT
        STOP
    END-IF
END-IF
*
   
IF VSAM1         = FLAT1
    VSAM2-OUT  = FLAT2
    PUT OUTPUT
END-IF
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 18, 2007 8:30 am    Post subject: Reply with quote

samlwho,


Your code will NOT work.

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


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Apr 18, 2007 10:37 am    Post subject: Reply with quote

Thanks to all of you for your help.
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
Goto page Previous  1, 2
Page 2 of 2

 
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