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
 

 

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 Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm


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