Re: how to do Unix copy command with temp file

2022-02-08 Thread Paul Gilmartin
On Tue, 8 Feb 2022 18:27:04 +, Billy Ashton wrote: >gil, I tried IEBGENER, but my test (copy to Unix using Gener, then copy >back to MVS file using Gener, then compare) failed with anything other >than text files (Ascii), but that might have been due to Path settings >or Filedata settings

Re: how to do Unix copy command with temp file

2022-02-08 Thread Seymour J Metz
[000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Tuesday, February 8, 2022 12:17 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: how to do Unix copy command with temp file On Tue, 8 Feb 2022 16:19:16 +, Seymour J Metz wrote: >Then you only need two steps; you can create a new temporary data

Re: how to do Unix copy command with temp file

2022-02-08 Thread Sri h Kolusu
> Why SORT rather than IEBGENER? > o I wouldn't expect Kolusu to suggest anything else. Gil, It is true that I am more inclined towards SORT as I am a developer of it but at the same time, I am a firm believer of using right tool for the right job. In this case SORT definitely outperforms

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
stserv.ua.edu> To IBM-MAIN@listserv.ua.edu Date 2/8/2022 1:19:19 PM Subject Re: how to do Unix copy command with temp file On Tue, 8 Feb 2022 17:50:15 +, Billy Ashton wrote: Hi gil, here is what we do: 1. Run an inhouse program that massages several files and creates one (possi

Re: how to do Unix copy command with temp file

2022-02-08 Thread Paul Gilmartin
On Tue, 8 Feb 2022 17:50:15 +, Billy Ashton wrote: >Hi gil, here is what we do: >1. Run an inhouse program that massages several files and creates one >(possibly) large file (&Untersedfile). >2. Terse that large file (&Tersedfile) >3. Pre-emptively delete the Unix file (this is the new step)

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
a very good shell programmer. Thank you and best regards, Billy Ashton -- Original Message -- From "Paul Gilmartin" <000433f07816-dmarc-requ...@listserv.ua.edu> To IBM-MAIN@listserv.ua.edu Date 2/8/2022 12:04:56 PM Subject Re: how to do Unix copy command with temp

Re: how to do Unix copy command with temp file

2022-02-08 Thread Paul Gilmartin
On Tue, 8 Feb 2022 16:19:16 +, Seymour J Metz wrote: >Then you only need two steps; you can create a new temporary dataset in the >AMATERSE step and a (maybe) new Unix file in the send step. > He never explained the need to delete an existing file rather than just overwriting it. But there

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
/tempfile.txt) Thanks again for your great suggestion! B Thank you and best regards, Billy Ashton -- Original Message -- From "Paul Gilmartin" <000433f07816-dmarc-requ...@listserv.ua.edu> To IBM-MAIN@listserv.ua.edu Date 2/8/2022 8:59:34 AM Subject Re: how to do Unix copy c

Re: how to do Unix copy command with temp file

2022-02-08 Thread Paul Gilmartin
On Tue, 8 Feb 2022 16:06:35 +, Billy Ashton wrote: >gil, the reason I cannot write directly is that in one case, after >creating my file, I run it through AMATERSE to shrink it, and AMATERSE >cannout output to the Unix file. So in this case, I need to write to a >temp file, then copy it to

Re: how to do Unix copy command with temp file

2022-02-08 Thread Carmen Vitullo
shell >command. Thanks for the suggestion! > >Thank you and best regards, >Billy Ashton > >-- Original Message -- >From "Carmen Vitullo" >To IBM-MAIN@listserv.ua.edu >Date 2/8/2022 8:29:11 AM >Subject Re: how to do Unix copy command with temp file >

Re: how to do Unix copy command with temp file

2022-02-08 Thread Seymour J Metz
@LISTSERV.UA.EDU] on behalf of Billy Ashton [bill00ash...@gmail.com] Sent: Tuesday, February 8, 2022 11:06 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: how to do Unix copy command with temp file gil, the reason I cannot write directly is that in one case, after creating my file, I run it through AMATERSE

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
o IBM-MAIN@listserv.ua.edu Date 2/8/2022 8:29:11 AM Subject Re: how to do Unix copy command with temp file On Tue, 8 Feb 2022 13:01:14 +, Billy Ashton wrote: Ok, here is a followup question from a problem I ran into... Is there a simple command like IEFBR14 that will allow me to delete

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
you and best regards, Billy Ashton -- Original Message -- From "Paul Gilmartin" <000433f07816-dmarc-requ...@listserv.ua.edu> To IBM-MAIN@listserv.ua.edu Date 2/8/2022 8:59:34 AM Subject Re: how to do Unix copy command with temp file On Tue, 8 Feb 2022 13:01:14 +00

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
, Billy Ashton -- Original Message -- From "Paul Gilmartin" <000433f07816-dmarc-requ...@listserv.ua.edu> To IBM-MAIN@listserv.ua.edu Date 2/8/2022 9:11:38 AM Subject Re: how to do Unix copy command with temp file On Tue, 8 Feb 2022 13:01:14 +, Billy Ashton wrote:

Re: how to do Unix copy command with temp file

2022-02-08 Thread Paul Gilmartin
On Tue, 8 Feb 2022 13:01:14 +, Billy Ashton wrote: >... >Ideally, I should not need this, but want to ensure that this file is >not there when I start my processing. > You wrote earlier that you wrote first to a Classic temp data set, then copy that to a temp UNIX file. Why can you not

Re: how to do Unix copy command with temp file

2022-02-08 Thread Paul Gilmartin
On Tue, 8 Feb 2022 13:01:14 +, Billy Ashton wrote: > >Is there a simple command like IEFBR14 that will allow me to delete a >USS path if it exists, or to just skip over it if not? Right now, if I >run IEFBR14, and have a DD statement with a path like

Re: how to do Unix copy command with temp file

2022-02-08 Thread Carmen Vitullo
On Tue, 8 Feb 2022 13:01:14 +, Billy Ashton wrote: >Ok, here is a followup question from a problem I ran into... > >Is there a simple command like IEFBR14 that will allow me to delete a >USS path if it exists, or to just skip over it if not? Right now, if I >run IEFBR14, and have a DD

Re: how to do Unix copy command with temp file

2022-02-08 Thread Billy Ashton
Ok, here is a followup question from a problem I ran into... Is there a simple command like IEFBR14 that will allow me to delete a USS path if it exists, or to just skip over it if not? Right now, if I run IEFBR14, and have a DD statement with a path like

Re: how to do Unix copy command with temp file

2022-02-03 Thread Paul Gilmartin
On Thu, 3 Feb 2022 17:37:11 +, Billy Ashton wrote: > >I have a process that takes input from several standard MVS files, and >creates a temporary file (sometimes small, sometimes ginormous). Our >shop is using SFTP to send files to another server, and I am not sure >how to code the "cp"

Re: how to do Unix copy command with temp file

2022-02-03 Thread Paul Gilmartin
On Thu, 3 Feb 2022 17:37:11 +, Billy Ashton wrote: > >I have a process that takes input from several standard MVS files, and > Help the list to help you by describing your "process". It might be as simple as: //CAT EXEC PGM=IEBGENER //SYSUT1 DD DSN=first.data.set //DD

Re: how to do Unix copy command with temp file

2022-02-03 Thread Radoslaw Skorupka
Try Irish commands. OCOPY can copy to/from file, ps dataset, member... Both input and output are ddnames. Note, ddname can be used for files as well. -- Radoslaw Skorupka Lodz, Poland W dniu 03.02.2022 o 18:37, Billy Ashton pisze: Here is a simple question that has a simple answer - I

Re: how to do Unix copy command with temp file

2022-02-03 Thread Carmen Vitullo
I'm not sure of your invocation, but maybe the OCOPY command could be useful ? Carmen On 2/3/2022 11:37 AM, Billy Ashton wrote: Here is a simple question that has a simple answer - I hope! I have a process that takes input from several standard MVS files, and creates a temporary file

how to do Unix copy command with temp file

2022-02-03 Thread Billy Ashton
Here is a simple question that has a simple answer - I hope! I have a process that takes input from several standard MVS files, and creates a temporary file (sometimes small, sometimes ginormous). Our shop is using SFTP to send files to another server, and I am not sure how to code the "cp"