View previous topic :: View next topic
|
Author |
Message |
rajiv_garg_mba
New User
Joined: 10 May 2005 Posts: 4
|
|
|
|
In a COBOL PROGRAM of 5000 lines there are many variables in working storage section which has PIC 9(6). I want to find these variables and change their PIC from PIC 9(6) to PIC X(6). Can you please suggest me some way of doing it. |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
Open the program or copybook in edit mode and use change all 'PIC 9(6)' to 'PIC X(6)' in command line. This holds good if you need to change "all" of PIC 9(6) to PIC X(6).
Regards,
Sridevi. |
|
Back to top |
|
|
rajiv_garg_mba
New User
Joined: 10 May 2005 Posts: 4
|
|
|
|
Hi
Thanks for the reply. I tried command change all 'PIC 9(6)' to 'PIC
X(6)' but its giving Invalid Parameter. Can you Please tell me exactly
what to type
One thing more. Is there some way to change some of the PIC values.
Thanks and Regards |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
This should be fine - c all 'pic 9(6)' 'pic x(6)'.If you need to replace some of pic 9(6) then go for c 'pic 9(6)' 'pic x(6)'.It's a one by one process and hence tedious.
Regards,
Sridevi. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
rajiv_garg_mba wrote: |
Hi
Thanks for the reply. I tried command change all 'PIC 9(6)' to 'PIC
X(6)' but its giving Invalid Parameter. Can you Please tell me exactly
what to type
One thing more. Is there some way to change some of the PIC values.
Thanks and Regards |
Hai try this
change all 'pic 9(6)' 'pic x(6)'
Hope this will work. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Don't include the "to". |
|
Back to top |
|
|
yogesh
New User
Joined: 27 May 2005 Posts: 21
|
|
|
|
hi friend,
i got ur problem.
actually u are using wrong syntax
u said u have used this
c all 'pic9(6)' to 'picx(6)'
remove the 'to' word
proper syntax is
c all 'pic 9(6)' 'pic x(6)'
try this u will get the output |
|
Back to top |
|
|
|