View previous topic :: View next topic
|
Author |
Message |
diwakarparthasarathy
New User
Joined: 29 May 2005 Posts: 10
|
|
|
|
HI FRIENDS,
I WAS ASKED IN AN INTERVIEW IF IAM USING A COPYBOOK WITH SOME
VARIABLES AND THE NAME OF THE COPYBOOK IS SAY X IN ONE PROGRAM.CAN I USE THE SAME COPYBOOK NAME WITH DIFFERENT
VARIABLES IN ANOTHER PROGRAM?
THANKS
DIWAKARPARTHASARATHY |
|
Back to top |
|
|
kvivek
New User
Joined: 09 May 2005 Posts: 51 Location: Singapore
|
|
|
|
Yes, Using Replacing option this is possible.
Quote: |
COPY <copybookname> REPLACING ==<fromvariable>== BY ==<tovariable>== |
Regards,
Vivek |
|
Back to top |
|
|
diwakarparthasarathy
New User
Joined: 29 May 2005 Posts: 10
|
|
|
|
HI VIVEK,
THANKS FOR YOUR REPLY BUT CAN U GIVE ME DATAILED INFORMATION?
THANKS
DIWAKARPARTHASARATHY |
|
Back to top |
|
|
kvivek
New User
Joined: 09 May 2005 Posts: 51 Location: Singapore
|
|
|
|
Let's say you have a copybook COPYBOOK and you have following statement
If you include this copy book using the following statement you will be using the same variables written in the copybook
If you want to use VAR3 instead of VAR1 you have to use the following stmt to include the copybook
Quote: |
COPY COPYBOOK REPLACING VAR1 BY VAR3 |
Hope this solves your query.
Regards,
Vivek |
|
Back to top |
|
|
kvivek
New User
Joined: 09 May 2005 Posts: 51 Location: Singapore
|
|
|
|
In my previous mail please change the statement from
Quote: |
COPY COPYBOOK REPLACING VAR1 BY VAR3 |
TO
Quote: |
COPY COPYBOOK REPLACING ==VAR1== BY ==VAR3== |
Regards,
Vivek |
|
Back to top |
|
|
diwakarparthasarathy
New User
Joined: 29 May 2005 Posts: 10
|
|
|
|
HI VIVEK,
THANK U SO MUCH FOR YOUR REPLY ,IT HAS CLEARED MY DOUBT.
REGARDS,
DIWAKARPARTHASARATHY |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
HI,
MAINFRAME GUY CAN BE EASILY IDENTIFIED BY HIS POSTS
IN CAPITAL LETTERS.
aS jAva gUy can be Identified by hungerianNOtation.
Well, there are 10 type of people in the world,
one who understand binary and one who doesn't
Was just Kidding,
Well, Vivek, it was a nice piece of information on Copy Books. |
|
Back to top |
|
|
|