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 

Use Change all command in Batch mode and write output to PS

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


Joined: 12 Feb 2007
Posts: 26
Topics: 13

PostPosted: Tue Mar 10, 2009 11:40 am    Post subject: Use Change all command in Batch mode and write output to PS Reply with quote

Hello All,

Sorry for this basic question but I am unable to resolve. Could you please help me.

1) I need to read a PDS member.
2) Change all 'XX' to 'YY'.
3) Write the changed data to PS output file.

Program:
Code:
  ARG ENV                                               
  Z1=OUTTRAP(LCOUT.)                                   
 "ALLOC F(INPUTDD) SHR REUSE"                         
 "ALLOC F(OUTDD) SHR REUSE"                           
 "EXECIO * DISKR INPUTDD"                             
  ADDRESS ISREDIT "CHANGE "XX" "YY"  ALL"       
 "EXECIO * DISKW OUTDD"                 


Job:
Code:
//XXXXXXXX EXEC PGM=IKJEFT01,PARM='%STRING NN'               
//SYSPROC  DD DSN=Z345267.CLIST,DISP=SHR               
//INPUTDD  DD DSN=Z345267.DATALIB(L501),DISP=SHR     
//OUTDD    DD DSN=Z345267.OUTDD,DISP=OLD                       
//*                                                             
//SYSTSIN  DD DUMMY                                             
//SYSTSPRT DD SYSOUT=*                                         
//*                                                             


I get the following error:

Code:
7 *-* ADDRESS ISREDIT 'CHANGE "XX" "YY"  ALL'       
  +++ RC(-3) +++
Back to top
View user's profile Send private message
naveen_summary
Beginner


Joined: 12 Feb 2007
Posts: 26
Topics: 13

PostPosted: Tue Mar 10, 2009 12:16 pm    Post subject: Reply with quote

Thank you,

I managed to find what I was looking for at (parse function):
http://www.mvsforums.com/helpboards/viewtopic.php?t=10538
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: Tue Mar 10, 2009 12:18 pm    Post subject: Reply with quote

naveen_summary,

You need to set up the batch tso interface as shown here

http://www.mvsforums.com/helpboards/viewtopic.php?t=5276
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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