Convert file to folder (UD)

141 views
Skip to first unread message

Stuart Boydell

unread,
Jul 23, 2021, 1:59:02 PM7/23/21
to jBASE
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

Mvreply

unread,
Jul 24, 2021, 6:50:58 AM7/24/21
to jb...@googlegroups.com

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

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
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 jbase+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/6a244bbf-5ec3-4869-8bff-c7fac02293a4n%40googlegroups.com.

Stuart Boydell

unread,
Aug 3, 2021, 9:49:28 PM8/3/21
to jBASE
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!

Stuart Boydell

unread,
Aug 3, 2021, 9:49:31 PM8/3/21
to jBASE
Thanks Mike
On Saturday, 24 July 2021 at 20:50:58 UTC+10 mvr...@zumasys.com wrote:

Stuart Boydell

unread,
Aug 4, 2021, 4:52:04 AM8/4/21
to jBASE
I just discovered the alternate COPY format works for this scenario.
COPY FROM $fileName TO $tmpFolder ALL

Peter Falson

unread,
Aug 4, 2021, 10:00:29 AM8/4/21
to jb...@googlegroups.com
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 <s.bo...@paperlesswarehousing.com.au> wrote:

I just discovered the alternate COPY format works for this scenario.

Stuart Boydell

unread,
Aug 4, 2021, 8:19:23 PM8/4/21
to jBASE
Cheers
Reply all
Reply to author
Forward
0 new messages