Hi Dharani,
Follow the below example.
*1. Create a Distribute file.*
jsh R10 ~ -->CREATE-FILE DUGGI TYPE=DISTRIB
[ 417 ] File DUGGI]D created , type = J4
[ 417 ] File DUGGI created , type = DISTRIB
*2. Assign the partion algoritham for Distribution file. Distribution
alogoritham is by defalut SYSTEM algoritham or USER defined algoritham. In
this example I used the USER defined algoritham to specify allocation 4
partition files*
+++++++++++++++++++++++++++++++++++++++++++++++++++++
SUBROUTINE DISTALGO(First, Key, PartNo)
EQU Otherwise TO 1
Result = MOD(DATE():TIME(),3)
BEGIN CASE
CASE Result = 1
PartNo = 1
CASE Result = 2
PartNo = 2
CASE Result = 3
PartNo = 3
CASE Otherwise
PartNo = 4
END CASE
RETURN
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Compile and catalog the above partition algorithm subroutine and attach it
to Main file.
jsh R10 ~ -->CREATE-DISTRIB -pUSER,DISTALGO DUGGI
*3. Create part files to Main file.*
jsh R10 ~ -->CREATE.FILE DATA DUGGI.1 TYPE=J4 2,100
[ 417 ] File DUGGI.1 created , type = J4
jsh R10 ~ -->CREATE.FILE DATA DUGGI.2 TYPE=J4 2,100
[ 417 ] File DUGGI.2 created , type = J4
jsh R10 ~ -->CREATE.FILE DATA DUGGI.3 TYPE=J4 2,100
[ 417 ] File DUGGI.3 created , type = J4
jsh R10 ~ -->CREATE.FILE DATA DUGGI.4 TYPE=J4 2,100
[ 417 ] File DUGGI.4 created , type = J4
*4. Add 4 part files to DUGGI (Main distribution file)*
jsh R10 ~ -->CREATE-DISTRIB -a DUGGI 1 DUGGI.1
Part file 'DUGGI.1', Part number 1 added
jsh R10 ~ -->CREATE-DISTRIB -a DUGGI 2 DUGGI.2
Part file 'DUGGI.2', Part number 2 added
jsh R10 ~ -->CREATE-DISTRIB -a DUGGI 3 DUGGI.3
Part file 'DUGGI.3', Part number 3 added
jsh R10 ~ -->CREATE-DISTRIB -a DUGGI 4 DUGGI.4
Part file 'DUGGI.4', Part number 4 added
*5. List all the part files using *
jsh R10 ~ -->LIST-DISTRIB DUGGI
Partitioning Algorithm is USER Subroutine 'DISTALGO'
Part file 'DUGGI.1', part number 1
Part file 'DUGGI.2', part number 2
Part file 'DUGGI.3', part number 3
Part file 'DUGGI.4', part number 4
jsh R10 ~ -->
After this you can insert any number of records in DUGGI file, those
records hopefully distributed among all the part files.
Thanks and Regards,
Duggineni Haribabu.
On 12 December 2013 14:23, Santhosh C. Nair <[email protected]> wrote:
> http://www.jbase.com/r5/knowledgebase/manuals/3.0/30manpages/man/file22.htm
>
>
> On Thu, Dec 12, 2013 at 10:32 AM, dharaninadh <[email protected]>wrote:
>
>> Hi,
>>
>> Could you please let clarify the below doubt.
>>
>> I basically about to test a defect fix for which --- "I need to create a
>> large file (ideally a distributed file), in the clients example this
>> consisted of 4 part files each of around 500Mbytes,with about 100,00
>> records in each file" --- . How can i achieve this?
>>
>>
>> On Tuesday, 12 May 2009 09:02:13 UTC+5:30, UL wrote:
>>>
>>> Hi I have a doubt, I just created a large file (more than 2GB) with
>>> j4 type. jbase version is 4.1.5.17. Where is this restriction
>>> applied. Can someone explain pls.
>>>
>>> jsh test1 ~ -->jstat -v JPTEST1
>>> File /bnk1/bnk/bnk.run/JPTEST1
>>> Type=J4 , Hash method = 3
>>> Created at Wed Apr 29 07:49:17 2009
>>> Groups = 712345 , Frame size = 8192 bytes , Secondary Record Size =
>>> 16384 bytes
>>> Restore re-size parameters : (none)
>>> File size = 5835538432 bytes , Inode = 96930 , Device = Id 22282342
>>> Last Accessed Wed Apr 29 07:50:09 2009 , Last Modified Wed Apr 29
>>> 07:50:09 2009
>>> Backup = YES , Log = YES , Rollback = YES , Network = NO
>>>
>>> /bnk1/bnk/bnk.run/JPTEST1: Invalid argument
>>>
>>> Record Count = 0 , Record Bytes = 0
>>> Bytes/Record = 0 , Bytes/Group = 0
>>> Primary file space: Total Frames = 262144 , Total Bytes = 0
>>> Secondary file space: Total Frames = 0 , Total Bytes = 0
>>> jsh test1 ~ -->
>>>
>>> thanks
>>>
>>> Udayangi
>>>
>>>
>>> On May 12, 2:27 am, Christophe <[email protected]> wrote:
>>> > Thanks Jim
>>> >
>>> > On May 11, 6:12 pm, Jim Idle <[email protected]> wrote:
>>> >
>>> >
>>> >
>>> > > Christophe wrote:
>>> > > > Hi All
>>> >
>>> > > > Is the 2 Gig file size limit still applicable with jBase 5.0.13 on
>>> J4
>>> > > > type files ?
>>> >
>>> > > Yes - there are no changes to J4.
>>> >
>>> > > Jim- Hide quoted text -
>>> >
>>> > - Show quoted text -
>>>
>> --
>> --
>> 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].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Thanks With Regards,
Duggineni Haribabu.
--
--
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].
For more options, visit https://groups.google.com/groups/opt_out.