View previous topic :: View next topic
|
Author |
Message |
bbxrider
New User
Joined: 25 Feb 2008 Posts: 5 Location: stockton ca
|
|
|
|
in cobol, is there some way to paste into a larger variable, eg pic x(2000), all 2000 bytes at once? so far it seems I can only type over or paste into the 24 characters available on the right side of the data area screen or with a peek
if I paste some chunk of data larger than the 24 available it just runs down the page into the other variables below the line where I just pasted?
perhaps on the memory screen, if I figure out how to find start of memory by its address offset,
see 2 pics attached, showing starting memory display and after pasting about 80 bytes into a pic x(2131) variable |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
whi not lookat the docs to see if an <expand> facility is available to see all the data of a variable
also hitting the hekp key might hint You something |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
there are scripts,
as well as routines that can be added to code,
during your session. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Easiest way I think: Put a working-storage variable in your program that has the data you want. Then put a move statement in your program moving the new variable to the target variable. (put it somewhere that doesn't get executed normally, like an error routine)
Then during your session, "goto" the line with the move statement, then step 1. Then "goto" back to the line you were on.
You can make several at once this way, just use different variables, with a move statement for each. |
|
Back to top |
|
|
bbxrider
New User
Joined: 25 Feb 2008 Posts: 5 Location: stockton ca
|
|
|
|
thanks for the replies, tried the help key and the big manual, will have to investigate the expand and scripts. a co-worker suggested the move thing, that just seemed so non-interactive debugging, guess I'm spoiled. xped is so sophisticated in so many ways, this seems like something that there should be a way to do it. With the move thing there is only 1 shot per compile if you need to change the value. I even sent an email to compuware, if I get answer for sure will post it back here. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
with scripts you can modify the code (and insert code to modify data areas)
without compiles. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
OT: IBM's Debug Tool lets you type a MOVE statement on the command line and then executes it interactively. I am surprised that xpeditor (a product I have not used for many years) doesn't have something similar. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Thing is, bbxrider has a 2000-byte literal he wants to "paste" into his field. He has the literal available for pasting, but wants to know if it is possible to get it into a field somehow.
Short of defining the literal in W-S (and then using one of the techniques suggested above) can it be done?
Down to dbz's scripting as the most likely, I think, I have no idea about that. |
|
Back to top |
|
|
|