Hi,
The system that I am using is most certainly Windows. But I am not
able to understand one thing with your answer is, I am able to create
a file manually using JED, then why cannot I do the same using
WRITESEQ?
The sample record in TEST.BP which I have created is as below:
jsh r09 ~ -->CT TEST.BP TEST:FILE
TEST:FILE
001 TESTING
jsh r09 ~ -->
The above record has been created manually. Could you please help me
to understand this?
Thanks,
Kiran.
On Sep 15, 10:28 pm, "[email protected]"
<[email protected]> wrote:
> If this is a Windows system, that would make sense.
> WRITESEQ writes a directory file, and ":" is illegal
> in the file name.
>
> Original Message:
> -----------------
> From: Kiran [email protected]
> Date: Mon, 14 Sep 2009 18:04:18 -0700 (PDT)
> To: [email protected]
> Subject: Unable to write using WRITESEQ
>
> Hi Viewer,
>
> I have some trouble using WRITESEQ. My problem is, I am unable to
> write to a record if a colon (:) character is part of the ID.
>
> For example,
>
> PROGRAM TEST.WRITE
>
> OPENSEQ 'TEST.BP', 'TEST:RECORD' TO F.FILE ELSE
> PRINT 'CANNOT OPEN THE FILE'
> END
>
> WRITESEQ 'TESTING ONLY' TO F.FILE ELSE
> PRINT 'CANNOT WRITE TO THE FILE'
> END
>
> CLOSESEQ F.FILE
>
> STOP
>
> END
>
> When executing this program, with a pre-created record TEST:RECORD,
> system is not writing the record to the file.
>
> jsh r09 ~ -->CT TEST.BP TEST:RECORD
> TEST:RECORD
>
> jsh r09 ~ -->
>
> The previously created record is as above. After executing the
> program, the output is as follows:
>
> jsh r09 ~ -->CT TEST.BP TEST:RECORD
> TEST:RECORD
>
> jsh r09 ~ -->
>
> The same thing, if I use a . instead of a : system is updating the
> record.
>
> The output of the record with a .
>
> jsh r09 ~ -->TEST.WRITE
> jsh r09 ~ -->CT TEST.BP TEST.RECORD
> TEST.RECORD
> 001 TESTING
>
> jsh r09 ~ -->
>
> What could be the problem with a : char in the record ID?
>
> Thanks,
> Kiran.
>
> --------------------------------------------------------------------
> myhosting.com - Premium Microsoft® Windows® and Linux web and application
> hosting -http://link.myhosting.com/myhosting
--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at:
http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to
Globus/T24
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
-~----------~----~----~----~------~----~------~--~---