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
 

 

How to declare variable length file in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to declare variable length file in cobol
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 06, 2009 3:41 pm    Post subject: Reply to: How to declare variable length file in cobol
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Aug 06, 2009 5:38 pm    Post subject: Reply to: How to declare variable length file in cobol
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

Site Director


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

PostPosted: Thu Aug 06, 2009 9:02 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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