LRECL of a tape entry



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

LRECL of a tape entry

Postby chettiha » Mon Jun 02, 2008 10:19 am

how to know the LRECL of a tape entry?
Actually I couldnot view the content of a tape Entry.Hence I could copy the content to other File and see what are its content.
But how could I know wht its LRECL.
chettiha
 
Posts: 3
Joined: Mon Jun 02, 2008 10:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: LRECL of a tape entry

Postby dick scherrer » Mon Jun 02, 2008 1:43 pm

Hello Chettiha and welcome to the forums,

I'd suggest you talk with your tape management people or your operations support people and ask them to look in the tape management system (if there is one) or to "print the tape header labels". DCB info is in the header labels.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: LRECL of a tape entry

Postby chettiha » Mon Jun 02, 2008 3:15 pm

Hello,
Thanks fo the Quick Response.
But can we copy it using some IDCAMS Utility and use its DCB default as that of the reqired tape entry and
know its LRECL.
chettiha
 
Posts: 3
Joined: Mon Jun 02, 2008 10:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: LRECL of a tape entry

Postby jayind » Mon Jun 02, 2008 5:19 pm

Hi,
I was going through your second question but unclear about the default DCB that you are talking about. Please mention an example. To my knowledge you cant use a different LCREL to get the data, your job may fail.
If you are hesitating to approach the system support people to find the header information (as they ask many approvals etc..) as Dick mentioned, my suggestions to find the LRECL, (if you have not done the following)
1. Search for the dataset name (at least partial) in the PRODUCTION JCL library, PROC library, datacard library to check whether any job created that dataset (If it is created in the recent past then definitely you will find the job)
2. If you dont find the dataset name in the production then, as per the naming convention used in your TEST region, search for the dataset name using the prefix used in test region
3. If you dont find in both the above cases, then try for any similar kind of dataset name may be for different purposes, like backup or Inbound/Outbound files for different vendors etc.. with the approximate you may find the LRECL
4. If you dont find the dataset (at least partial) name in any of your dataset libraries, then only way to find is as mentioned by Dick
Hope this information helps..
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time

Re: LRECL of a tape entry

Postby Bill Dennis » Mon Jun 02, 2008 9:32 pm

If the tape has Standard Labels (containing the info Dick mentioned) then some utilities (IEBGENER, SORT w/COPY, etc) will allow you to copy the file and automatically create the output file with the same LRECL. SORT messages will show the LRECL of the files.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: LRECL of a tape entry

Postby jayind » Tue Jun 03, 2008 12:16 pm

Hi Bill Dennis,

Could you please give an example on how it creates automatically with the same LRECL using IEBGENER? I am curious..

Regards,
Jayind
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time

Re: LRECL of a tape entry

Postby Bill Dennis » Tue Jun 03, 2008 10:23 pm

Just a simple step without DCB info on SYSUT2
//GEN2A    EXEC PGM=IEBGENER                                 
//SYSPRINT DD SYSOUT=*                                       
//SYSUT1   DD DSN=your.tape.dsname,DISP=OLD,UNIT=TAPE,VOL=SER=tapeno       
//SYSUT2   DD DSN=your.copy.dsname,DISP=(NEW,KEEP),UNIT=TAPE
//SYSIN    DD DUMMY                                         
The SYSOUT msgs will show the LRECL of the input and it will be used for copy file.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post