Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to invoke REXX like Edit or Browse command

Status
Not open for further replies.

dilipkumartr

Programmer
Feb 13, 2007
4
0
0
US
Hello Everyone,

1.I got this piece of code to identify the Line Count in a Tape Dataset

/* Rexx */
"ALLOC FI(INPUTD) DA('@...(DATA)') shr"
"Execio * DISKR INPUTD (Finis Stem In."
say In.0;

When I try this code, I get the following error message
IKJ56709I INVALID DATA SET NAME, '@...'
IKJ56701I MISSING DATA SET NAME OR *+
IKJ56701I MISSING NAME OF DATA SET TO BE ALLOCATED

Let me know how I should correct it.
To invoke the macro I am just typing the name of the macro infront of the dataset
I am basically interested to modify the above macro to do other function on a Tape dataaset.

2. General REXX question. How can I get the name of the dataset to REXX, when I invoke the REXX by keying the name of the REXX infront of the dataset, just like the edit or the browse command.

I have few REXX, that I invoke like
TSO PGMMAP 'userid.test(member)'

I want to modify this , I want to just type PGMMAP infront of the member and the REXX should be invoked.
Is this possible, if so how should it be done

Thanks
Dilip
 
I don't understand. You can't have tape PDS's so the member part in the brackets won't ever work for tape datasets.

By the way if you don't have TSO MOUNT authority you are wasting your time
 
You can't really use it for tape but,
to get your idea to work try this

/* Rexx */
InDsn = arg(1)
"ALLOC FI(INPUTD) DA("InDsn") shr"
"Execio * DISKR INPUTD (Finis Stem In."
say In.0
exit 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top