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

How to Copy Ps file to PDs file.


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

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Sun Oct 07, 2007 12:53 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Oct 07, 2007 1:13 pm
Reply with quote

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
View user's profile Send private message
Narismha

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Sun Oct 07, 2007 1:25 pm
Reply with quote

Hi,

Thank you so much for your quick reply.

Can i have code if any??

Thanks
Narismha
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sun Oct 07, 2007 1:52 pm
Reply with quote

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
View user's profile Send private message
Narismha

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Sun Oct 07, 2007 2:05 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Oct 07, 2007 10:01 pm
Reply with quote

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
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Mon Oct 08, 2007 5:16 pm
Reply with quote

The code given by SuperK will works. Please close ur pds member while executing. after execution check the PDS member.
Back to top
View user's profile Send private message
Narismha

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Mon Oct 15, 2007 10:41 am
Reply with quote

Hi,

Thank you for all your efforts.

Code is working now..


Regards
Narismha
Back to top
View user's profile Send private message
sachin_star3
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 78
Location: pune

PostPosted: Sat Oct 27, 2007 1:59 pm
Reply with quote

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
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 How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top