Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
copy to an exist sam file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
husj

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Thu Oct 20, 2005 12:33 pm    Post subject: copy to an exist sam file
Reply with quote

Hi,
I want to copy the content of SAM FILE1 to SAM FILE2, but SAM FILE2 is already exist. I tried to use IEBGERNER,but returncode is 12 because of existing of file2.
Who can tell me How to resolve the problem?

Thanks

Jerry
Back to top
View user's profile Send private message

ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Thu Oct 20, 2005 12:38 pm    Post subject: Re: copy to an exist sam file
Reply with quote

what r ur disp parameters....
y dont u use DISP=MOD and try with PGM=SORT utility....
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Oct 20, 2005 12:42 pm    Post subject: Re: copy to an exist sam file
Reply with quote

Hi Husj,

Please elaborate your problem,

What do u mean by sam File, Is it VSAM file or Flat file?

Do u want creat a replica of Sam file or or do yo want to add ib file 2.

Regards

Rupesh
Back to top
View user's profile Send private message
husj

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Fri Oct 21, 2005 8:21 am    Post subject: Re: copy to an exist sam file
Reply with quote

Hi, Rupesh,

FILE1 and FILE2 are all flat file and already exist. I want to cover FILE2 with FILE1. i.e. I do not need the old data in FILE2. JCL is like this,

//FILECPY1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD DSN=FILE2,DISP=SHR
//SYSIN DD DUMMY

Maybe IEBGENER can not complete this function. But I do not how to do

regards
Back to top
View user's profile Send private message
husj

New User


Joined: 05 Sep 2005
Posts: 12
Location: P.R.C

PostPosted: Fri Oct 21, 2005 9:16 am    Post subject: Re: copy to an exist sam file
Reply with quote

hi,everybody,

I found the way to resolve the problem. PGM=SORT can work.
Thanks for your help

regards

Jerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us