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
 
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 How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
No new posts TRAILER3 is creating blank record in ... kodeesm DFSORT/ICETOOL 3 Fri May 18, 2018 5:45 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Copying only first and last word from... chandan.inst SYNCSORT 4 Wed Jan 31, 2018 4:19 pm
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm

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