IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Tool for calculating the record length of a file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Geethi

New User


Joined: 03 Mar 2007
Posts: 10
Location: US

PostPosted: Wed Mar 28, 2007 12:11 am
Reply with quote

Hi,

Does anybody have a tool for calculating the record length of a fixed/variable length COBOL file, if the layout is specified ? I know one of my friends had written a script in VB; but unfortunately he's not reachable now. (and I'm not familiar in VB to code) If somebody have the same, please post it. (when the layout is pretty big, adding the length of each field is time-consuming)

Thanks in advance,
Geethi
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Mar 28, 2007 12:58 am
Reply with quote

Put the layout in a very short COBOL program's WS and let the compiler compute it for you.....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Mar 28, 2007 2:09 am
Reply with quote

Hello,

You may also get the length of a record using file-aid if your site has the product installed.

If the file has already been created, you can get the length from the existing file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
Search our Forums:

Back to Top