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

Rexx command to retrieve tso 'copy' command


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shobhana

New User


Joined: 04 Jun 2007
Posts: 2
Location: chennai

PostPosted: Fri Sep 21, 2007 7:38 pm
Reply with quote

Hi,

Please provide me some inputs for below.

If we want to copy a dataset, we will give 'copy/C' in the dataset name.

What is the REXX command/syntax to retrieve this COPY command(or any command given by user to process dataset)?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 21, 2007 7:44 pm
Reply with quote

Standard TSO doesn't have a COPY command. So, I'm a bit confused with what you're asking. Could you provide a few more details, or maybe re-word your question.
Back to top
View user's profile Send private message
shobhana

New User


Joined: 04 Jun 2007
Posts: 2
Location: chennai

PostPosted: Fri Sep 21, 2007 8:38 pm
Reply with quote

If we want to copy a dataset or delete a dataset, we give 'C or D' in the command line.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 21, 2007 9:20 pm
Reply with quote

Still don't have a clue as to what you're talking about, although it sounds less likely that REXX can possibly have anything to do with it.

Let's cut to the chase - are we talking about commands run in a TSO session, ISPF commands issued within some ISPF dialog session, or ISPF EDIT Primary commands?

I don't know of any way to trap commands issued within a TSO session without delving into the inner workings of TSO.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Tue Sep 25, 2007 10:31 am
Reply with quote

Shobana,

If i understood you correcly, you are asking for REXX utility which will perform the same functionality as you provide C/D against a dataset in 3.4 mode.

I dont think we have any such utility, you need to cook up the code to your requirement.

Steps will go like this,

1.Get the DSN name, allocate a new dataset .
2. Have a loop to iterate till EOF and copy the line from input and write the same in output.
3.Terminate the program.

Get back to me, if you still have any queries.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 25, 2007 1:02 pm
Reply with quote

superk,

Quote:
Standard TSO doesn't have a COPY command.



I have used TSO COPY command in few of my REXX programs.

Code:

ADDRESS TSO "COPY '"FILE27"' '"FILE28"'"     


Please correct me if am wrong.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 25, 2007 1:18 pm
Reply with quote

Quote:
Please correct me if am wrong.


Many, I would say most, of the communication issues on these forums are due to the fact
that many responders do not make any distinction from a vanilla/standard setup/environment
and make suggestions, give solutions based on they organization setup and installed products

so... it is not about being right or wrong but about giving answers which could apply to the O/P environment

"copy" could be anything, from a home written thing, to a program installed from some TSO add on product,
once upon a time there was an IBM product called TSO utilities which would give
additional tso commands ("copy" was one of them )and other front ends ( prompters ) for batch utilities.

regards

e.s
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 25, 2007 5:56 pm
Reply with quote

Yes, mine is a standard setup and i am able to make use of the COPY command.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 25, 2007 7:16 pm
Reply with quote

Quote:
Yes, mine is a standard setup and i am able to make use of the COPY command


It might be standard from your point of view, not from an IBM product content perspective
the base product set ( TSO/E + ISPF ) does NOT contain any COPY command

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4C580/CCONTENTS?SHELF=IKJ4BK80&DN=SA22-7782-09&DT=20070508225602

regards

e.s.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Tue Sep 25, 2007 7:45 pm
Reply with quote

I go with enrico.

Aaru,

Even in the below post, you have mentioned about "SWAT" which is custom built routine.

http://ibmmainframes.com/viewtopic.php?t=24259

I think in your project, there has been a lot of tools(custom) has been implemented.

Also I could not able to locate any command "Copy" as such in IBM Manuals.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 26, 2007 2:06 pm
Reply with quote

Quote:
I think in your project, there has been a lot of tools(custom) has been implemented.


I shall check with the concerned and update you all.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
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
Search our Forums:

Back to Top