GeekInterview.com
Series: Subject:
Question: 39 of 105

Read Sequential File

How to read sequential file in reverse order?
Asked by: vijaysimha | Member Since Jan-2009 | Asked on: Jan 21st, 2009

View all questions by vijaysimha

Showing Answers 1 - 3 of 3 Answers
vjjammi

Answered On : Feb 18th, 2009

View all answers by vjjammi

Sort the file in the Reverse order using the option DESC(Descending Order) and then read the file.

  
Login to rate this answer.
mf.vannan

Answered On : Aug 12th, 2010

View all answers by mf.vannan

Hi guys

input file
======

a
n
d

to get outupt
==========

d
n
a


if you use the desc sort, output will be display as z to a

if you insert the sequence no on file, than sort to get reverse order.

syntax is

OUTREC = (1, 5, SEQNUM, 5, ZD)

sequence no will be stored in 6 to 10



Regards
Rasipuram Manivannan M

  
Login to rate this answer.

open file in reverse

i.e OPEN input file-name Reverse

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.