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 

ISPF EDIT locate ERROR

 
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: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Thu Feb 20, 2014 8:00 am    Post subject: ISPF EDIT locate ERROR Reply with quote

I found variations on the locate command at http://pic.dhe.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.f54em00%2Flocate.htm

One in particular is confusing me. What command (if any) can I use along the lines of
Code:
'LINE_BEFORE .zcsr = MSGLINE "'!!temp!!'"'


to create the ==ERR> text in the prefix area ?
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Feb 20, 2014 11:44 am    Post subject: Reply with quote

It has been a decade since I did this, but ==ERR> applies to data lines, not message lines and the easiest way to produce one is to do a change command that will fail on that line. I used to do a change command that I knew would fail due to line expansion beyond hte record length. Something along the lines of changing things
Code:
 C P'=' '   ' LAST .XXX .XXX  /* try to change last character to multiple blanks on one line */

I think that will do it but play around with this idea if my example is not quite right. For multiple lines you will need more logic, maybe to do each line individually or changing the last character (as determined by data_width).
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Fri Feb 21, 2014 8:32 am    Post subject: Reply with quote

Thanks semigeezer. Will test your suggestion.
_________________
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