Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Rexx command to retrieve tso 'copy' command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Rexx command to retrieve tso 'copy' command
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

Moderator Team Head


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

PostPosted: Fri Sep 21, 2007 7:44 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Sep 21, 2007 9:20 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Sep 25, 2007 1:02 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue Sep 25, 2007 1:18 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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: 1288
Location: Chennai, India

PostPosted: Tue Sep 25, 2007 5:56 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue Sep 25, 2007 7:16 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Sep 26, 2007 2:06 pm    Post subject: Reply to: Rexx command to retrieve tso 'copy' command
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us