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
 

 

insert a record when copying member

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Wed Oct 22, 2008 2:23 pm    Post subject: insert a record when copying member
Reply with quote

Hi folks

Here is my situation: I want to copy a member and rename it, and update some records, also, I wanna:

Code:
IF=(1,0,C"AAAAAA")


Then insert a specific record right after the record above.

FILE-AID is not allowed me to use COPYMEM and WRITE together.

Any thoughts??

Thx,
Galen
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Oct 23, 2008 3:51 am    Post subject:
Reply with quote

Hi,

try this

Code:
*                                                               
*** INSERT A LINE AFTER EACH OCCURRENCE OF AAAAAA               
*                                                               
$$DD01 USER MEMBER=OLDNAME,NEWMEM=NEWNAME,                       
              WRITE=DD01O,                                       
              IF=(1,0,C"AAAAAA"),                               
              MOVE=(1,C'NEW LINE'),                             
              WRITE=DD01O                                       



Gerry
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Thu Oct 23, 2008 2:11 pm    Post subject:
Reply with quote

gcicchet wrote:
Hi,

try this

Code:
*                                                               
*** INSERT A LINE AFTER EACH OCCURRENCE OF AAAAAA               
*                                                               
$$DD01 USER MEMBER=OLDNAME,NEWMEM=NEWNAME,                       
              WRITE=DD01O,                                       
              IF=(1,0,C"AAAAAA"),                               
              MOVE=(1,C'NEW LINE'),                             
              WRITE=DD01O                                       



Gerry


That's bring me a new idea, thx!!
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 -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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