Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Change Values in COBOL Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Change Values in COBOL Program
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    Post subject:
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    Post subject: Re: Change Values in COBOL Program
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    Post subject:
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    Post subject: Re: Change Values in COBOL Program
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    Post subject:
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    Post subject: Re: Change Values in COBOL Program
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming 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 change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us