IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we write to KSDS vsam file directly from another KSDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Thu Sep 06, 2007 2:23 pm
Reply with quote

HI ppl,

I have a doubt like can we write a record from a KSDS vsam file from another KSDS VSAM file directly without copying to a working-storage record.Like,two vsam files layouts are the same and the Keys are also same.In this case can i use the Write <new vsam file-record> from old-vsam-record?
will this command work
old-vsam-record is the record of the file which i'm copying from.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 06, 2007 2:34 pm
Reply with quote

poongs,

Yes
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Sep 06, 2007 2:41 pm
Reply with quote

Or Read <old vsam file-record> into new-vsam-record and then Write....
Back to top
View user's profile Send private message
poongs
Warnings : 1

New User


Joined: 24 Jan 2007
Posts: 28
Location: pune

PostPosted: Thu Sep 06, 2007 3:09 pm
Reply with quote

Thnx for the reply....
Actually in my case,i'm reading from the file and checking in the second file if that record exists or not,if it is not existing(file status '23'),then only i';m writing it into the second file.

Jus needed confirmation whether i can go about it......
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top