IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

variable blocked file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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.

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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top