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
 
Can we edit the comp-3 value in xpeditor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
deepthib

New User


Joined: 15 Nov 2006
Posts: 2
Location: Bangalore

PostPosted: Wed Aug 22, 2007 3:20 pm    Post subject: Can we edit the comp-3 value in xpeditor
Reply with quote

can we edit the comp-3 value in xpeditor?
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Aug 22, 2007 3:56 pm    Post subject:
Reply with quote

Deepthi,
Quote:
can we edit the comp-3 value in xpeditor?

Did you try?
Back to top
View user's profile Send private message
deepthib

New User


Joined: 15 Nov 2006
Posts: 2
Location: Bangalore

PostPosted: Wed Aug 22, 2007 4:19 pm    Post subject: I didnt try, but i faced that question in one interview.
Reply with quote

Actually it will display in Hexe deciaml format. so can you clarify the same.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Aug 22, 2007 7:52 pm    Post subject:
Reply with quote

Quote:
Actually it will display in Hexe deciaml format. so can you clarify the same.


do PEEK HEX and edit the numeric value
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Tue Aug 28, 2007 1:49 am    Post subject:
Reply with quote

It will not display in HEX

It will display just as a decimal value in the xpeditor during your debug.
you can edit the comp-3 in xpeditor screen.

15 KEY1-ACCOUNT > +00000004566 PACKED
15 KEY1-DEPOSIT-NUMBER > ?????? INVALID PACKED
15 KEY1-BANK > ???? INVALID PACKED
15 KEY1-RECORD-CODE > ???? INVALID PACKED


===
15 KEY1-BANK PIC S9(3) COMP-3.
15 KEY1-BRANCH PIC S9(5) COMP-3.
15 KEY1-ACCOUNT PIC S9(11) COMP-3.
15 KEY1-DEPOSIT-NUMBER PIC S9(5) COMP-3.
15 KEY1-RECORD-CODE PIC S9(3) COMP-3.
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 COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am

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