How to find out the record length using tso command?

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
bsriram

How to find out the record length using tso command?

Post by bsriram » Wed Feb 15, 2006 12:01 pm

hi,
can any body give me reply.this is interview question. pls give me reply asap.

with cheers,
sriram.

User avatar
Rupesh.KOthari
Member
Posts: 17
Joined: Thu Feb 16, 2006 5:27 pm

Post by Rupesh.KOthari » Fri Feb 17, 2006 5:14 pm

Hi,
can any body give me reply.this is interview question. pls give me reply asap.
In option 3.4, when you enter i infront of PS. U will get following record length.

Code: Select all

Record length . . . : 80
Correct me if I am wrong.
------------------------
Thanks & Regards
Rupesh
-----------------------
Sun Shines Everywhere

User avatar
LRevell
Member
Posts: 7
Joined: Tue Jan 30, 2007 9:06 pm
Location: Tallahassee, Florida

Post by LRevell » Tue Jan 30, 2007 9:36 pm

Works for DASD files, but not for tape or GDG files.
For tapes, run a simple Syncsort job to copy the dataset to a dummy output, and the printout will give you the record count.

meena_cts
Member
Posts: 5
Joined: Tue Feb 13, 2007 3:51 pm

Post by meena_cts » Thu Feb 15, 2007 11:39 am

FYI...
For Tape Files, Lrecl and other basic information can be found thru
CA-1 UCC1 - TAPE MANAGEMENT System Interface .

In CA-1 Tool, U'll have to enter into Inquiry Option Wherein
we have to give either Vol Serial No of the Tape OR the Name of the Tape File.

We'll get all the Info about the tape like Lrecl ,Created Date/Time,Expiry Date,Block Size,RecFm etc...

However to view data on the tape files, SORT Step need to be executed (which will copy fiel residing from tape to disk).

varun
Member
Posts: 5
Joined: Thu Oct 25, 2007 1:48 am

Post by varun » Fri Oct 26, 2007 12:17 am

You can use the TSO/E command LISTDS to find the attributes of a non-VSAM dataset. For a VSAM dataset, the LISTDS command only returns DSORG, which is, VSAM. You would need to then use LISTCAT command to get more information about the VSAM dataset

HTH,
Varun

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others