Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Actual Record length in case RECFM=VB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 125
Location: India

PostPosted: Mon Mar 29, 2010 10:41 am    Post subject: Actual Record length in case RECFM=VB
Reply with quote

For record format as variable block [VB], first 4 byte is used to store the actual record length.

Please tell me how to see that value as it appears in other format.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 29, 2010 10:48 am    Post subject:
Reply with quote

Hello,

Quote:
first 4 byte is used to store the actual record length
Not quite. There are 2 lengths - the Block Descriptor and the Record Descriptor.

Quote:
Please tell me how to see that value as it appears in other format.
What does this mean? Please clarify.
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 125
Location: India

PostPosted: Mon Mar 29, 2010 10:59 am    Post subject:
Reply with quote

Hi

I want to know the each actual record length, Which i think will be kept in Record descriptor as You mentioned. But it is not in display format i think.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Mar 29, 2010 11:48 am    Post subject: Reply to: Actual Record length in case RECFM=VB
Reply with quote

why should anybody retype what is explained better in the manuals ?
DFSMS Using Data Sets
for the whole shebang

a quick and dirty search of the manual
Variable-Length Record Formats
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Mar 29, 2010 7:11 pm    Post subject:
Reply with quote

Susanta wrote:
But it is not in display format i think.
True. If you view the records in ISPF the RDW portion of the record is not shown. If you HEX ON you will see the length of the data portion of each record not counting the 4 byte RDW.

Does this help?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 29, 2010 7:52 pm    Post subject:
Reply with quote

You may also use a SORT JCL like:
Code:
//SHOWV   EXEC PGM=SORT                                                 
//SYSOUT  DD   SYSOUT=*                                                 
//SORTIN  DD   DSN=...hlq.vb.file,DISP=SHR                       
//SORTOUT DD   SYSOUT=*                                                 
//SYSIN   DD    *                                                       
  OPTION COPY                                                           
  OUTREC BUILD=(1,4,1,2,BI,C'|',5)                                     
/*                                                                     
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 29, 2010 7:56 pm    Post subject:
Reply with quote

or you may redefine it as a "U" file and display it with HEX ON, I've not tried it, though.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Mar 29, 2010 8:06 pm    Post subject:
Reply with quote

Anuj Dhawan wrote:
or you may redefine it as a "U" file and display it with HEX ON, I've not tried it, though.
If you did that you would see all the record descripters, all the records and the block descripter, LLBBllbb----record----llbb---record---- etc...
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Mar 29, 2010 8:16 pm    Post subject:
Reply with quote

Thanks CG - I'll just check it once I get to log-in tothe mainframes,

Have a good one, icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us