View previous topic :: View next topic
|
Author |
Message |
Bhavesh upadhyay
New User
Joined: 20 Jul 2010 Posts: 7 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Bhavesh upadhyay
New User
Joined: 20 Jul 2010 Posts: 7 Location: India
|
|
|
|
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 |
|
|
Kurt Deininger
New User
Joined: 13 Jul 2010 Posts: 19 Location: Frankfurt/Germany
|
|
|
|
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 |
|
|
|