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
 
variable blocked file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Suryyogi

New User


Joined: 17 Jun 2006
Posts: 27

PostPosted: Sat Sep 02, 2006 10:32 am    Post subject: variable blocked file
Reply with quote

i tried some them which are disscussed but yet i am unable to run program successfuly.
what i did :
FD INFILE
RECORD CONTAINS 1 TO 76 CHARACTERS
BLOCK CONTAINS 1 TO 76 CHARACTERS
RECORDING MODE IS VB.
01 INREC.
02 NO1 PIC 99.
02 FILLER PIC X.
02 NAME PIC A(73).

BUT WHILE COMPILING IT GIVES ERROR RECORD IS INVALID
AND RECORDING MODE IS ASSUMED F.
CAN YOU SPECIFY ONE EXECUTABLE VERSION OF PROGRAM.
AND CONDITIONS TO RUN SUCH PROGRAM SUCCESSFULLY.

THNK YOU
YOGESH.
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 02, 2006 7:32 pm    Post subject:
Reply with quote

Hi YOGESH,

Try the link below. If you have any probs implementing that come on back w/your ques. We'll be glad to help.

http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/igyl1101/2.6.5?ACTION=MATCHES&REQUEST=variable+length+records&TYPE=FUZZY&SHELF=&DT=19930312093006&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
Back to top
View user's profile Send private message
shrinivas_3
Warnings : 1

New User


Joined: 05 Sep 2006
Posts: 34

PostPosted: Tue Sep 05, 2006 12:31 pm    Post subject: Re: variable blocked file
Reply with quote

Suryyogi wrote:
i tried some them which are disscussed but yet i am unable to run program successfuly.
what i did :
FD INFILE
RECORD CONTAINS 1 TO 76 CHARACTERS
BLOCK CONTAINS 1 TO 76 CHARACTERS
RECORDING MODE IS VB.
01 INREC.
02 NO1 PIC 99.
02 FILLER PIC X.
02 NAME PIC A(73).

BUT WHILE COMPILING IT GIVES ERROR RECORD IS INVALID
AND RECORDING MODE IS ASSUMED F.
CAN YOU SPECIFY ONE EXECUTABLE VERSION OF PROGRAM.
AND CONDITIONS TO RUN SUCH PROGRAM SUCCESSFULLY.

THNK YOU
YOGESH.



Hi

block size does not has any affect on vb files.
make BLOCK CONTAINS 0 RECORDS
and
RECORD CONTAINS 1 TO 73 CHARACTERS
here it should be 73 characters , but in jcl you need to mention 4 bytes more for this file i.e in jcl it should be lrecl=77

thanks
shrinivas
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am

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