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 a member from one PDS to other and then do changes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Fri Jan 23, 2009 9:10 am    Post subject: Copy a member from one PDS to other and then do changes
Reply with quote

Hi,

Can we dynamically copy a member in a pds to other pds. Then open the copied member and do changes it.

Final result must be the changed member in front of the programmer.

Can we copy one line at a time from source to destination.

I do not want to submit a job using rexx macro.
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: Fri Jan 23, 2009 9:28 am    Post subject:
Reply with quote

Hello,

Is there some reason to copy one line at a time?

Simply copy the member from the "current" pds to the target pds. Then, edit the "new" member making whatever changes you want to make.
Back to top
View user's profile Send private message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Fri Jan 23, 2009 9:40 am    Post subject: Reply to: Copy a member from one PDS to other and then do ch
Reply with quote

Thank you for the suggection.
Yes this i a good way out.

But is it possible to copy a member to pds with the same name.
Then open the new member and edit the same?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Jan 23, 2009 9:53 am    Post subject:
Reply with quote

Hi,

there is a difference when one does not know how to do it, but when one does know , why not try it?


Gerry
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: Fri Jan 23, 2009 10:09 am    Post subject:
Reply with quote

Hello,

Quote:
Then open the new member and edit the same?
Yup, go for it icon_smile.gif
Back to top
View user's profile Send private message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Wed Jan 28, 2009 10:19 am    Post subject: Reply to: Copy a member from one PDS to other and then do ch
Reply with quote

Hi,

Please find the code below.

address isredit
"c all D04BP D04BT"
address isredit
"c all 'AAAA' 'BBBB'"
"RES"
"SAVE"
"CUT"
"CANCEL"
" "

DO
OUTPDS=STRIP("'"||OUT_PDS||"'")
JOB=("'"||OUT_PDS||"("||JNAME||")"||"'")
ADDRESS ISPEXEC
"ISPEXEC EDIT DATASET("JOB")"
ADDRESS ISREDIT
"PASTE"
"SAVE"
END

It says 'paste' is invalid commad.

Can any one tell what is the command to paste the cut line.
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: Wed Jan 28, 2009 12:44 pm    Post subject:
Reply with quote

Mmmmmm, methinks you are doing this the wrong way around. It looks as though you are doing the changes before the copy, and you issue the SAVE command which saves the changes in the original member which you then try to copy.

To do the copy, take a look at LM services which are detailed in the ISPF services manual.

Another way is the copy command, when you open the new member you can do something like

"ISREDIT COPY 'Dataset name(member)' AFTER "0
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Wed Jan 28, 2009 10:17 pm    Post subject: Reply to: Copy a member from one PDS to other and then do ch
Reply with quote

Your EDIT command should include an initial macro. Do your changes from the initial macro.
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 -> CLIST & REXX 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 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 Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am

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