SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Concatenate a file to a second file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Concatenate a file to a second file
Author Message
Reg Ripperger



Joined: 25 Jan 2000
Posts: 1

Post Concatenate a file to a second file Reply with quote

I would like concatenate one file to another using 27x7 JAL. In a dos batch file I would do it like this...
type h:\prod\daily\log\chkstat.bk2 >> h:\prod\daily\log\chkstat.bk3

Can you tell me how to do it using 24x7 JAL?

Tue Jan 25, 2000 6:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6500

Post Re: Concatenate a file to a second file Reply with quote

: I would like concatenate one file to another using 27x7 JAL. In a dos batch
: file I would do it like this...
: type h:\prod\daily\log\chkstat.bk2 >> h:\prod\daily\log\chkstat.bk3

: Can you tell me how to do it using 24x7 JAL?

example 1:
// Use DOS to concatenate file
Dim( process, number )
Run("command.com /b type h:\prod\daily\log\chkstat.bk2 >> h:\prod\daily\log\chkstat.bk3", "", process )
// For Windows NT use "cmd" instead of "command.com"

example 2:
// Pure JAL
Dim( file1, String )
Dim( file2, String )
FileReadAll( "h:\prod\daily\log\chkstat.bk2", file1 )
FileReadAll( "h:\prod\daily\log\chkstat.bk3", file2 )
Concat( file2, file1, file2 )
FileSave( "h:\prod\daily\log\chkstat.bk3", file2 )


Tue Jan 25, 2000 11:03 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.