Print last record of Tape file.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Vijay Kamath
New Member
Posts: 8
Joined: Tue Dec 22, 2015 10:44 am
Albania

Print last record of Tape file.

Post by Vijay Kamath »

Hi everyone,

We have a tape file. We want to print the last record. We need pseudo code for all possible solutions.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Print last record of Tape file.

Post by Robert Sample »

Use IDCAMS to REPRO from the tape file to print. The last record printed will be the one you want.

If your site has SAS, it's pretty easy to code up a SAS program to print just the last record (but you didn't ask for just the last record, you just said you want to print it so printing the entire data set meets your criterion).
We need pseudo code for all possible solutions.
This, like most fora, has responders that are volunteers. Which means the response may not be very fast. And if you want pseudo coded solutions, you need to be prepared to pay the going rate for such code (typically the rates start at $1,000 USD per day or fraction and can go much higher). If you don't want to pay the rate, don't ask for code on the forum.
Vijay Kamath
New Member
Posts: 8
Joined: Tue Dec 22, 2015 10:44 am
Albania

Re: Print last record of Tape file.

Post by Vijay Kamath »

Thanks for the idea on IDCAMS Robert. Will work on it.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”