View previous topic :: View next topic
|
Author |
Message |
Narismha
New User
Joined: 22 Nov 2006 Posts: 23 Location: Mumbai
|
|
|
|
Hi All,
By Using IEBCOPY i am trying to copy Ps(Sequential file) to a PDS(Partitioned data set). But i am unable to get the results.
Can you please send me the jcl code if any which will help me to copy the PS file to PDs of one member.
Note: My PDS has only one member.. i want to replace the memeber by copying the PS file.
Thanks in advance.
Regards
Narismha |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
IEBCOPY is used for PDS to PDS copies, etc. etc.
Use IEBGENER instead, IEBUPDTE is another option, DFSORT will do it too |
|
Back to top |
|
|
Narismha
New User
Joined: 22 Nov 2006 Posts: 23 Location: Mumbai
|
|
|
|
Hi,
Thank you so much for your quick reply.
Can i have code if any??
Thanks
Narismha |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Code: |
//COPY EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=MY.PS.FILE
//SYSUT2 DD DISP=SHR,DSN=MY.PDS(MEMBER)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
|
|
|
Back to top |
|
|
Narismha
New User
Joined: 22 Nov 2006 Posts: 23 Location: Mumbai
|
|
|
|
Hi,
I am getting return code zero, but member is not replaced. ii.e the records in the PDS file member remains same,it is not overriding by ps file records.
Thanks
Narisimha |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you post the actual jcl you submit, and the jes info from the job, we may be able to help. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
The code given by SuperK will works. Please close ur pds member while executing. after execution check the PDS member. |
|
Back to top |
|
|
Narismha
New User
Joined: 22 Nov 2006 Posts: 23 Location: Mumbai
|
|
|
|
Hi,
Thank you for all your efforts.
Code is working now..
Regards
Narismha |
|
Back to top |
|
|
sachin_star3 Warnings : 1 New User
Joined: 30 Sep 2006 Posts: 78 Location: pune
|
|
|
|
check here the sysut2 disp parameter .if it mod then change it to shr or old
without jcl also u can do this by the file-aid tool
use 3 option copy
then the menu comes where they ask u want to replace the existion one or not.its very useful tool |
|
Back to top |
|
|
|