I hope your directory is not physically present or having permission issues

On Saturday, 10 March 2012,  <[email protected]> wrote:
> Hi Kiran,
>
> Try:
> OPENSEQ '../inputfiles/test.file' TO F.SEQ.FILE SETTING Y.VAR ELSE
> PRINT Y.VAR
> ABORT 101, "failed"
> END
> READSEQ Y.LINE FROM F.SEQ.FILE THEN
> PRINT Y.LINE
> END
>
> Is inputfiles a TYPE=UD directory? I guess it is not. Above change should
work (not tested)
>
> Kind regards
> Pawel
> Wysłano z BlackBerry®
> ________________________________
> From: Kiran <[email protected]>
> Sender: [email protected]
> Date: Fri, 9 Mar 2012 14:14:13 -0800 (PST)
> To: <[email protected]>
> ReplyTo: [email protected]
> Subject: Re: OPENSEQ not opening the file
> Hi Viewers,
> Appreciate your responses.
> I will try to elaborate my problem.
> I am having the file in the said directory. I can open and see it using
JED. But when I try to open the file using the OPENSEQ it does not open the
file. I am guessing it is not able to resolve the directory name. The
directory name I have used is "../inputfiles" which is an absolute path for
/r10r/r10r/bnk/inputfiles. The database is on a AIX Logical Volume. And I
think OPENSEQ is not able to resolve the directory.
> I tried something like below:
> OPENSEQ '../inputfiles', 'test.file' TO F.SEQ.FILE SETTING Y.VAR ELSE
> PRINT Y.VAR
> END
> READSEQ Y.LINE FROM F.SEQ.FILE THEN
> PRINT Y.LINE
> END
>
> System prints the value of Y.VAR as 128 (which is No such file or
directory). And the subsequent READSEQ fails.
> Since I was checking whether the file name was opened or not, I am trying
to read a single line from the file and trying to print it.
> My actual program is different which uses a loop to read the entire
content of the file, and upload into the database. But this is where the
problem is, so I have illustrated it simply using a simple program.
> Please let me know does having a logical volume affects the operation of
OPENSEQ and if it does is there any emulation or a environment variables
which I have to set for this specific purpose.
> Thanks,
> Kiran.
>
> On Thursday, March 8, 2012 7:13:03 PM UTC-6, Kiran wrote:
>>
>> Hi Group,
>>
>> I am working on AIX OS, and there is a issue with openseq command.
>>
>> Y.SRC.DIR = "CODE.BP"
>> Y.FILE.NAME = "TEST.FILE"
>>
>> OPENSEQ Y.SRC.DIR, Y.FILE.NAME TO F.SEQ.FILE THEN
>> PRINT F.SEQ.FILE
>> END
>>
>> When I try running the above snippet of code, nothing gets printed on
>> the screen. It appears like the file is not getting opened.
>>
>> Can somebody help me on this please?
>>
>> Thanks
>> Kiran.
>
> --
> 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
>
> --
> 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
>

-- 
Sent from Gmail Mobile

-- 
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

Reply via email to