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
 

 

modifying large variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: modifying large variable
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Tue Sep 27, 2011 11:24 pm    Post subject: Reply to: modifying large variable
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: 6968
Location: porcelain throne

PostPosted: Wed Sep 28, 2011 1:11 am    Post subject:
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    Post subject:
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    Post subject: Reply to: modifying large variable
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: 6968
Location: porcelain throne

PostPosted: Thu Sep 29, 2011 2:39 pm    Post subject:
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: 655
Location: Whitby, ON, Canada

PostPosted: Thu Sep 29, 2011 5:53 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Sep 29, 2011 6:31 pm    Post subject: Reply to: modifying large variable
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for large file muralikrishnan_new COBOL Programming 3 Mon Jun 12, 2017 12:50 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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