Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Copy Ps file to PDs file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to Copy Ps file to PDs file.
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: 8593
Location: Back in jolly old England

PostPosted: Sun Oct 07, 2007 1:13 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Sun Oct 07, 2007 1:52 pm    Post subject: Reply to: How to Copy Ps file to PDs file.
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    Post subject:
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

Site Director


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

PostPosted: Sun Oct 07, 2007 10:01 pm    Post subject:
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    Post subject: Reply to: How to Copy Ps file to PDs file.
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    Post subject:
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    Post subject:
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    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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us