IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Edit the current opn PDS member in Rexx


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bhavesh upadhyay

New User


Joined: 20 Jul 2010
Posts: 7
Location: India

PostPosted: Wed Oct 13, 2010 3:38 pm
Reply with quote

Hi ,

Can we get the dataset name which is currently open in View/Edit mode in the rexx macro

Code:

VIEW          USERID.XYZ.PGM.SOURCE(MEMABC)       
Command ===>       mymarcro                               
******    ***************************** Top of Data ******


I want the edit the USERID.XYZ.PGM.SOURCE(MEMABC) by REXX edit marco(mymacro)

I need to scan entire MEMABC then looking for a string in it. when ever string found i need to add a debug cobol code after the line where string found.

Please let me know, if query is not clear or need more info about it.

Thanks,
Bhavesh
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 13, 2010 3:53 pm
Reply with quote

Quote:
Please let me know, if query is not clear or need more info about it.


no,
it is quite clear that
  • you have not bothered to look in the manuals,
    (there are examples)
  • you have not bothered to search the forum,
    (there are examples)
  • you have a very low skill-set for REXX
  • you want somebody to provide you code


one thing to keep in mind,
even though you can invoke Edit Macros in VIEW Mode,
you will need to use the REPLACE command to update your member,
as SAVE is not a valid command in VIEW Mode.

and if you bother to change your attitude from
'give me'
to
'self help'
you will find a very good example of a REXX Macro
that does almost exactly what you want,
with the differences being
  • searches for paragraph names
  • inserts a DISPLAY command

do a look thru of Anuj's posts and you will find it.
Back to top
View user's profile Send private message
Bhavesh upadhyay

New User


Joined: 20 Jul 2010
Posts: 7
Location: India

PostPosted: Mon Oct 18, 2010 5:39 pm
Reply with quote

Thanks for your Advice.

Yes, that is true, I am new to Rexx programming. so I am not have very good skill in REXX.

I had searched the manual, but did not get what I need ectually.

I do not want code , my intention was just to know the
Quote:

dataset name which is currently open in View/Edit mode in the rexx macro


other things are just let my programming need for information only.


Any way finally i got the answer.

Thanks for your time.
Bhavesh
Back to top
View user's profile Send private message
Kurt Deininger

New User


Joined: 13 Jul 2010
Posts: 19
Location: Frankfurt/Germany

PostPosted: Tue Oct 19, 2010 12:07 pm
Reply with quote

try

Code:

/* REXX #FILEID2*/                 
   "ISREDIT MACRO NOPROCESS (PARM)"
   "ISREDIT (EDTLIB) = DATASET"     
   "ISREDIT (EDTMEM) = MEMBER"     
   "ISREDIT (BLK) = BLKSIZE"       
   "ISREDIT (LNG) = LRECL"         
   "ISREDIT (FMT) = RECFM"         
   say "edtlib=<"edtlib">"         
   say "edtmem=<"edtmem">"         
   say "blk=<"blk">"               
   say "lng=<"lng">"               
   say "fmt=<"fmt">"               
   exit                             
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top