MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Set ==CHG> string in prefix area

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 614
Topics: 171
Location: Stockholm, Sweden

PostPosted: Thu Aug 11, 2022 1:18 am    Post subject: Set ==CHG> string in prefix area Reply with quote

I noticed that if I run a command such as
Quote:

change FRED BERT all

in a file, I see the string ==CHG> in the prefix area for each changed line.

I'm running an edit macro that performs a find, then change on individual lines where the before/after strings vary through the macro.
I was wondering if there is a way of creating the ==CHG> string in the prefix area via an edit command?
I know I can use the LINE_BEFORE command, but then the results look something like this
Quote:

==MSG> LINE CHANGED
001260 MOVE OBD IN HFADA1A-REC TO W-DATUM.

(not what I'm after since there will be hundreds of changes in the code, and the user won't be able to see the wood for the trees, IMO, compared to the equivalent results for change FRED BERT all)
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12354
Topics: 75
Location: San Jose

PostPosted: Thu Aug 11, 2022 8:38 pm    Post subject: Reply with quote

misi01,

How about doing a dummy change in View mode?
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 614
Topics: 171
Location: Stockholm, Sweden

PostPosted: Fri Aug 12, 2022 5:53 am    Post subject: Reply with quote

That won't work since I need to actually change the code.
I can see the thinking behind the idea of marking the prefix area for a "change ..... ALL" (in case you made changes that weren't intended).
The docs indicate the following is valid
Quote:

(varname)-- = --LINE_STATUS--+-linenum-+

so based on most EDIT commands, I assumed something like the following might work
Quote:

"LINE_STATUS .zcsr = "varname

where varchar was defined as a 32 byte string.
Unfortunately, I got RC = 20, so I'm guessing it's simply not allowed.
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group