Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol Misc > Re: Reading Ind...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 105 of 181
Post > Topic >>

Re: Reading Indexed Files Backwards

by "sro" <sottis@[EMAIL PROTECTED] > Jun 29, 2005 at 09:21 PM

there ain't no 'read previous' in UCS cobol 85 on a unisys 2200

HeyBub wrote:
> Ubiquitous wrote:
> > lxi0007@[EMAIL PROTECTED]
 wrote:
> >
> >> I could have sworn that in COBOL class, we did something like this...
> >>
> >> move high-values to my-key
> >> start my-file
> >>   key not > my-key
> >> read my-file previous record
> >>
> >> To read an indexed file backwards.  However, today we were looking at
> >> the manual for the compiler, and it didn't have this form of the read
> >> statement in it.  Am I imagining things?  Is there a way to read an
> >> indexed file backwards (in effect, a descending key)?
> >
> > A coworker asked me the same question recently and I thought the
> > same thing, until we realized it was a CICS function. I think a
> > VSAM book said something about making an alternate index and
> > populating it with the 10's complement of the index.
>
> Yep. That's the hard way.
>
> SOME compilers permit READ PREVIOUS or READ PRIOR. It's a fairly easy
thing
> to incor****ate into a compiler, but evidently the one you're using now
does
> not sup****t the ability to do so.
 




 4 Posts in Topic:
Re: Reading Indexed Files Backwards
"sro" <sotti  2005-06-29 21:21:46 
Re: Reading Indexed Files Backwards
"Chuck Stevens"  2005-06-30 10:37:01 
Re: Reading Indexed Files Backwards
"William M. Klein&qu  2005-07-08 15:01:31 
Re: Reading Indexed Files Backwards
LX-i <lxi0007@[EMAIL P  2005-07-02 20:13:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 13:42:58 CDT 2008.