Operating System - HP-UX
1752772 Members
5594 Online
108789 Solutions
New Discussion юеВ

ERROR subscript out of range

 
Victor Akamine
Occasional Advisor

ERROR subscript out of range

Hi,

I've created a script to aggregate a lot of files in only one.

But, i have a lot of archives and this error occur in process: subscript out of range.

The output file was created apparently without errors.

But i want to know if this problem can cause future problems.

Regards,
Akamine
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: ERROR subscript out of range

My psychic powers are too weak to let me
diagnose a problem in an invisible (shell?)
script, let alone predict what its
consequences might be in some unspecified
environment.

> The output file was created apparently
> without errors.

So, either you don't have a problem, or else
you can't tell if you have a problem. How
important are these data?
Victor Akamine
Occasional Advisor

Re: ERROR subscript out of range

I want to know how this problem 'subscript out of range' may affects my script.

I want to know what is this problem, the script not is my property, because this i can't available in this forum.

Thanks
Steven Schweda
Honored Contributor

Re: ERROR subscript out of range

> I want to know what is this problem, [...]

Normally it means that you have some array
with a finite size, and you have tried to
access some storage outside its extent.

> I want to know how this problem 'subscript
> out of range' may affects my script.

That (still) depends on the (invisible)
script, and my psychic powers are still too
weak to show me that without your help.

> [...] i can't available in this forum.

I guess that you're stuck, then.

Who wrote this script? Ask him?
Dennis Handly
Acclaimed Contributor

Re: ERROR subscript out of range

>this error occur in process: subscript out of range.

This happens if you have a subscript > 1023.
What command is producing that error message?
James R. Ferguson
Acclaimed Contributor

Re: ERROR subscript out of range

Hi:

> I want to know how this problem 'subscript out of range' may affects my script.

At the very least, your script isn't going to do all that it was intended to do.

> the script not is my property, because this i can't available in this forum.

And then it isn't possible to be more specific in answering your first question, above.

This is a question of don't-ask-if-you-can't-tell.

Regards!

...JRF...