Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 122
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: 122
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: 10232
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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us