View previous topic :: View next topic
|
Author |
Message |
toonmoon
New User
Joined: 27 Jul 2007 Posts: 2 Location: chennai
|
|
|
|
Hi,
How can we get the tape LRECL through CLIST.
If we can get it thru REXX also it is fine. I have tried LISTDSI and LISTC
and could not get LRECL information. Is there any other way. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Take a look at the TMS software in use at your shop. |
|
Back to top |
|
|
toonmoon
New User
Joined: 27 Jul 2007 Posts: 2 Location: chennai
|
|
|
|
What is TMS software and how can i get info. bout that. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
This may help:
Tape Management System(TMS): A program product or application that oversees tape operations. Tape management systems typically manage the enterprise's tape inventory, control user authorization to tape volumes, and request tape mounts on behalf of the user.
System people, at your site, can help you to find which TMS software is in use at your shop. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
Not sure how to do this in CLIST, but
Quote: |
Is there any other way. |
tells me to share this JCL
Code: |
//*
//STEP010 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//DD01 DD DSN=TAPE_FILE_NAME,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(DD01)
/*
//* |
For characteristics of tape look
You'll find something like:
Code: |
WER108I DD01 : RECFM=FB ; LRECL= 2250; BLKSIZE= 31500 |
Hope this helps. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
Back to top |
|
|
tatasteed
New User
Joined: 18 Sep 2007 Posts: 8 Location: Santiago de Chile
|
|
|
|
This posting matches exactly my requirement.
I have been trying to find the information outlined but I was unable.
Is there any code available as sample? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
SYS1.SAMPLIB (IGGCSIRX) is a good place to start.
Click HERE for the documentation of CSI. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
I don't see how you'll get tape DCB info using IGGCSIRX.
Depending on the TMS installed at your site, there may be methods to query the tape management catalog to find the info without actually reading the tape (as in the SYNCTOOL example). I have done this with a program for CA-1 and made it work from 3.4 using a command 'T'. |
|
Back to top |
|
|
tatasteed
New User
Joined: 18 Sep 2007 Posts: 8 Location: Santiago de Chile
|
|
|
|
Hi,
I followed the link and the documents in SYS1.SAMPLIB (IGGCSIRX) but cannot see how to retrieve LRECL and Record Format from there.
I am afraid that I need an example.
Thanks! |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Anuj,
the only problem I see with your example is that entire file is going to be read, reading 1 record only sholud be sufficient.
Gerry |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Bill Dennis wrote: |
I don't see how you'll get tape DCB info using IGGCSIRX. |
tatasteed wrote: |
Hi,
I followed the link and the documents in SYS1.SAMPLIB (IGGCSIRX) but cannot see how to retrieve LRECL and Record Format from there. |
There is a field in the manual (catalog field names - C.6.1 ) called LRECL which contains the LRECL of the file in question. All that needs to be done is to amend the REXX to extract it. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
expat wrote: |
There is a field in the manual (catalog field names - C.6.1 ) called LRECL which contains the LRECL of the file in question. All that needs to be done is to amend the REXX to extract it. |
That field may be present for VSAM files but I would bet anything that the catalog entry won't return the LRECL for tapes and other non-VSAM files. |
|
Back to top |
|
|
|