FWIW you can do
COPY FROM onefile TO anotherfile ALL {OVERWRITING}
The OVERWRITING will be quicker.
Sent from my iPhone
> On Aug 4, 2021, at 1:52 AM, Stuart Boydell
> <[email protected]> wrote:
>
> I just discovered the alternate COPY format works for this scenario.
> COPY FROM $fileName TO $tmpFolder ALL
>
>> On Wednesday, 4 August 2021 at 11:49:28 UTC+10 Stuart Boydell wrote:
>> I'm currently trying to do this from a bash script but I'm not sure how to
>> pipe into the COPY command.
>> Can anyone suggest something that works along the lines of:
>>
>> mkdir tmp123
>> echo "(tmp123"|COPY DICT MYFILE *
>>
>> This just seems to try to copy contents of the current folder to itself!
>>
>>> On Saturday, 24 July 2021 at 20:50:58 UTC+10 [email protected] wrote:
>>> Stuart,
>>>
>>> This option is meant for resizing hashed source code files to a folder and
>>> does include an OBJECT data section.
>>>
>>>
>>>
>>> There is currently no option to resize to a regular TYPE=UD.
>>>
>>> This works on Windows but seems to be a problem on Linux.
>>>
>>>
>>>
>>> We will look into it.
>>>
>>>
>>>
>>> Mike
>>>
>>>
>>>
>>> From: [email protected] <[email protected]> On Behalf Of Stuart
>>> Boydell
>>> Sent: 23 July 2021 08:38
>>> To: jBASE <[email protected]>
>>> Subject: Convert file to folder (UD)
>>>
>>>
>>>
>>> jrf -jHbc option to resize a hashed file to an OS folder doesn't seem to
>>> work. Is there a trick or alternative to resize to an OS folder?
>>>
>>>
>>>
>>> Also, if I can get it working - will this create an OBJECT part - which I
>>> don't want?
>>>
>>>
>>>
>>> In a zumasys/jbase:latest container:
>>>
>>>
>>>
>>> >CREATE-FILE TEST1
>>>
>>> [ 417 ] File TEST1]D created , type = JD
>>>
>>> [ 417 ] File TEST1 created , type = JD
>>>
>>> >OFF
>>>
>>> sh-4.4# jsh -a TEST
>>>
>>> >jrf -Hjbc TEST1
>>>
>>> /jbasedata/dbms/TEST/TEST1 is currently an empty file
>>>
>>> (R)esize anyway or (S)kip file resize: R
>>>
>>> MOVE /jbasedata/dbms/TEST/1tmp.jrf to /jbasedata/dbms/TEST/TEST1 failed
>>> with error: 20
>>>
>>> Resize of /jbasedata/dbms/TEST/TEST1 was skipped!
>>>
>>> 0 file(s) resized.
>>>
>>> 1 file(s) skipped and could not be overwritten (probably in use)...
>>>
>>> MOVE /jbasedata/dbms/TEST/1tmp.jrf to /jbasedata/dbms/TEST/TEST1 failed
>>> with error: 20
>>>
>>> Elapsed: 00:00:05
>>>
>>> --
>>> --
>>> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>>>
>>> To post, send email to [email protected]
>>> To unsubscribe, send email to [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/jBASE?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "jBASE" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jbase/6a244bbf-5ec3-4869-8bff-c7fac02293a4n%40googlegroups.com.
>>>
>
> --
> --
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jbase/ee4ab625-73f1-4399-a7ea-8f42a5517772n%40googlegroups.com.
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
---
You received this message because you are subscribed to the Google Groups
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jbase/CC529017-65BF-4704-89C8-4DEB5651899B%40gmail.com.