Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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: 2504
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 How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us