View previous topic :: View next topic
|
Author |
Message |
MARINA JOSEPH
New User
Joined: 11 Jun 2009 Posts: 61 Location: chennai
|
|
|
|
Hi,
I have created a MACRO which will create a copy of the copybook that is being used in the program.
Program Name - SAMPLE
Macro Name - MYREXX
Copybook Name - EMPLOYEE
MYREXX creates copy of the copybook EMPLOYEE.
I need to copy paste the contents of EMPLOYEE and the copy created into the program SAMPLE, using the MACRO.
Could somebody please tell how to do this using the COPY PASTE commands with the help of a MACRO?
Thanks in advance. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
1) Please do NOT use all caps in the title, it is considered as shouting, and inappropriate.
2)Your requirement is not totally clear - do you really want to copy the originial copybook and your copy of a copybook into the program.
3)Where is the insert made ? position of cursor or fixed location. |
|
Back to top |
|
|
MARINA JOSEPH
New User
Joined: 11 Jun 2009 Posts: 61 Location: chennai
|
|
|
|
Thanks for your reply.
Yes, i want to copy the contents of the original copybook and the copy into the program.
I need to make the inserts after line 33 and line 37 in the program.
Thanks. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
As ISPF uses relative line numbers - always work from the bottom upwards to preserve the relative values for multiple inserts.
Code: |
CRSLINE = 37
"ISREDIT COPY 'PDS name(member)' AFTER "CRSLINE
CRSLINE = 33
"ISREDIT COPY 'PDS name(member)' AFTER "CRSLINE |
|
|
Back to top |
|
|
MARINA JOSEPH
New User
Joined: 11 Jun 2009 Posts: 61 Location: chennai
|
|
|
|
Thanks a lot, it worked. |
|
Back to top |
|
|
|