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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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