IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

modifying large variable


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bbxrider

New User


Joined: 25 Feb 2008
Posts: 5
Location: stockton ca

PostPosted: Tue Sep 27, 2011 10:53 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10812
Location: italy

PostPosted: Tue Sep 27, 2011 11:24 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Wed Sep 28, 2011 1:11 am
Reply with quote

there are scripts,
as well as routines that can be added to code,
during your session.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Sep 28, 2011 9:51 pm
Reply with quote

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
View user's profile Send private message
bbxrider

New User


Joined: 25 Feb 2008
Posts: 5
Location: stockton ca

PostPosted: Thu Sep 29, 2011 12:40 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Thu Sep 29, 2011 2:39 pm
Reply with quote

with scripts you can modify the code (and insert code to modify data areas)
without compiles.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 718
Location: Whitby, ON, Canada

PostPosted: Thu Sep 29, 2011 5:53 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

PostPosted: Thu Sep 29, 2011 6:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Panel variable model line TSO/ISPF 3
No new posts Make cobol variable value a variable COBOL Programming 3
No new posts Merge a variable number of records fr... DFSORT/ICETOOL 5
No new posts Trying to reference a javascript glob... CLIST & REXX 7
No new posts Is it possible to allocate DA dataset... All Other Mainframe Topics 5
Search our Forums:

Back to Top