View previous topic :: View next topic
|
Author |
Message |
gpriyaeng
New User
Joined: 04 Jan 2008 Posts: 10 Location: hyderabad
|
|
|
|
Hi,
i have a file as follows.
.12345
cfvb
fgff
.34567
dgfdf
hhfdhdf
fhfdh
.8797
ddsgsdf
gfgf
every '.' marks the begining of a new record.
i need to read one record( multiple lines is one record ) and move it to a another file and use it for some other processing.
how to just read one record and stop the further reading of the file. like once x'.' character is encountered in the first byte of the record, i need to stop reading from the file...the job should be terminated.
Thanks
Gpriya |
|
Back to top |
|
|
gpriyaeng
New User
Joined: 04 Jan 2008 Posts: 10 Location: hyderabad
|
|
|
|
what i meant was as follows. in the example mentioned, a single record is built in multiple lines and the char x'.' is the record separator. so x'.' marks the beginning of the next record. i want to read the multiple lines that form a record , concatenate them and write it as a single record in another file.
how do i stop reading from the file once i encounter the first x'.' ? this was the doubt. hope i'm clear. |
|
Back to top |
|
|
gpriyaeng
New User
Joined: 04 Jan 2008 Posts: 10 Location: hyderabad
|
|
|
|
i want the job to terminate as soon as the char x'.' is found.no further reading of the file should happen and return code shud be 0. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Have you referred your problem to the SYNCSORT technical support folks? I'm sure they could offer you a solution that will fit your needs. |
|
Back to top |
|
|
|