View previous topic :: View next topic
|
Author |
Message |
shobhana
New User
Joined: 04 Jun 2007 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
shobhana
New User
Joined: 04 Jun 2007 Posts: 2 Location: chennai
|
|
|
|
If we want to copy a dataset or delete a dataset, we give 'C or D' in the command line. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Yes, mine is a standard setup and i am able to make use of the COPY command. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
|