IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

insert a record when copying member


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Thu Oct 23, 2008 3:51 am
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
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 All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts To Discard record with 0 entry if Dup... SYNCSORT 7
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts Write record twice based on condition... SYNCSORT 7
Search our Forums:


Back to Top