Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us