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 

Insert new line based on criteria

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


Joined: 20 Mar 2006
Posts: 133
Topics: 58

PostPosted: Mon Mar 20, 2006 10:58 am    Post subject: Insert new line based on criteria Reply with quote

Hi All,

My requriement is to insert new lines into members based on some criteria.

Say:- The lines tht needs to inserted are in PS file.

scan thru the program.

If character " MVS FORUM" and line before this has a space

Insert lines from the ps file.


Can any one help me with this?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Mar 20, 2006 11:45 am    Post subject: Reply with quote

Martin,

Please search before posting. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=5396&highlight=insert+line

Hope this helps...

Cheers

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


Joined: 20 Mar 2006
Posts: 133
Topics: 58

PostPosted: Mon Mar 20, 2006 12:01 pm    Post subject: Reply with quote

kolusu,

I tried using the utlity mentioned in the link,But its gicing me the below error:-

STMT 107 - LABEL MSGDISP SPECIFIED BUT COMMAND NOT FOUND
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Mar 22, 2006 3:39 am    Post subject: Reply with quote

Martin,

Did you code the MSGDISP para in your rexx routine.
Code:

MSGDISP:                                                               
 If env = "TSO" Then Do                                                 
  "ISPEXEC SETMSG MSG(WKMM000B)"                                       
 End                                                                   
 Else Do                                                               
  Say smsg "-" lmsg                                                     
 End                                                                   
 Return 0     


If you have done that, then pls show us the complete code you are running so that we can see what might have gone wrong.

Thanks,
Phantom
Back to top
View user's profile Send private message
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