Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us