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
 

 

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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