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
 

 

Regarding the RDW of VB file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Thu Dec 18, 2008 12:33 pm    Post subject: Regarding the RDW of VB file.
Reply with quote

Hi,
I was trying to read the RDW(1-4 bytes) of a VB file which has the record length of 311 .pls find the code below.

The first 2 bytes should have the record length+4 and 3 and 4th has zeros( correct me if i am wrong), I used the below mentioned code it displayed the actual record length, but when i tried to display all the 4 bytes it showed some incorrect numbers.

My Input file has lrecl 315 and FRMT is VB.

Code:

  OPTION COPY                                           
  OUTFIL VTOF,BUILD=(5,311,1,2,BI,SUB,+4,EDIT=(IIIIT))   


The above code displayed my desired result...

<data> <rec length>

but when i used,
Code:

  OPTION COPY                                           
  OUTFIL VTOF,BUILD=(5,311,1,4,BI,EDIT=(IIIIT))   


expected output: 1-2 bytes : recd length+4 and 3-4: zeros.


Please clarify.

Thanks,
Sam.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Dec 18, 2008 12:43 pm    Post subject: Reply to: Regarding the RDW of VB file.
Reply with quote

the numbers might look strange but there is a logic

the rule for RDW is ...
1st halfword the record lenght
2nd halfword ..... binary zeroes

carry on a bit of math to find out the differences ,
for example for a record with a length of 80 bytes
You would have rdw=x'00500000'

and taking the first hafword You would get 80
taking erroneously the whole rdw You would get 5242880 ( handheld math )
maybe something diferent if he edit mask/picture is inadequate

the results is right , the process is wrong
Back to top
View user's profile Send private message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Thu Dec 18, 2008 12:59 pm    Post subject:
Reply with quote

Thanks a lot for your quick reply. That did throw light on the result i got.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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