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

How to declare variable length file in cobol


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

New User


Joined: 14 Jul 2006
Posts: 15
Location: New Delhi

PostPosted: Thu Aug 06, 2009 3:08 pm
Reply with quote

Hi
i am trying to decalre the variable length file in cobol from fixed file. but i am getting lot of problem.

Anyone tell me how to declare the variable length file. my fixed length record is 1124.

Thanks in advance.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 06, 2009 3:41 pm
Reply with quote

Is the variable-length file a 2nd-File or are you attempting to define a fixed-length file as variable-length?

As far as the COBOL definition of a variable-length file, you will find examples of this in the COBOL forum, dating back many years.

The definition can also be found in your applicable COBOL manual.

Have you Googled this?

Bill
Back to top
View user's profile Send private message
kalhor

New User


Joined: 20 May 2007
Posts: 31
Location: iran

PostPosted: Thu Aug 06, 2009 5:19 pm
Reply with quote

Hi,
You can find it in "DB2-Appl. Programming and SQL Guide" book
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 06, 2009 5:38 pm
Reply with quote

Huh icon_question.gif icon_question.gif icon_question.gif

Why/how is this DB2 related?

Bill
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: Thu Aug 06, 2009 9:02 pm
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". The first set of material is COBOL. Pick the Language Reference for your version of cobol and search (the flashlight/tubelight near the top left) for "recording mode".

If you find something that is not clear, post what you found and your doubt about it.

Someone will be able to clarify.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
Search our Forums:

Back to Top