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
 
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: 4650
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

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