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

Change Values in COBOL Program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajiv_garg_mba

New User


Joined: 10 May 2005
Posts: 4

PostPosted: Sat Oct 08, 2005 4:21 pm
Reply with quote

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
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Sun Oct 09, 2005 11:53 am
Reply with quote

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
View user's profile Send private message
rajiv_garg_mba

New User


Joined: 10 May 2005
Posts: 4

PostPosted: Mon Oct 10, 2005 10:36 am
Reply with quote

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
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Mon Oct 10, 2005 6:32 pm
Reply with quote

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
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Mon Oct 10, 2005 7:02 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Oct 14, 2005 6:37 am
Reply with quote

Don't include the "to".
Back to top
View user's profile Send private message
yogesh

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Tue Oct 18, 2005 4:34 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top