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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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