Page 1 of 1

Print last record of Tape file.

Posted: Sat Feb 03, 2024 10:48 pm
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.

Re: Print last record of Tape file.

Posted: Sun Feb 04, 2024 3:15 am
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.

Re: Print last record of Tape file.

Posted: Mon Feb 05, 2024 5:49 pm
by Vijay Kamath
Thanks for the idea on IDCAMS Robert. Will work on it.