Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Edit the current opn PDS member in Rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Edit the current opn PDS member in Rexx
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us