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

Convert the files from fixed format to Variable block format


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yogesh

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Tue Feb 07, 2006 3:21 pm
Reply with quote

Hi friends,

I have written a COBOL program to convert the files from fixed block format to Variable block format,( the output files are of VB format.)
What changes i need to do in the COBOL program if i want the same output in V ( variable files ) instead of VB file?

Regards,
Yogesh.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Feb 08, 2006 11:08 pm
Reply with quote

Yogesh,

I believe that if you have coded BLOCK CONTAINS 0 RECORDS. in the FD there is nothing in the cobol program you must do. It is the DCB parms in the JCL that will determine if it's RECFM=V or RECFM=VB.

I don't use Variable records much, so if I'm wrong, someone please jump in.

Dave,
Back to top
View user's profile Send private message
yogesh

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Sat Mar 18, 2006 7:24 pm
Reply with quote

hI

mY EXISTING COBOL PROGRAM HAS THE SAME LOGIC
BUT STILL WHEN I TRY TO CONVERT FB FILES TO vARIABLE FILES I AM NOT ABLE TO DO SO
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Sat Mar 18, 2006 7:58 pm
Reply with quote

post your file code from your program as well as jcl dd statements for these files
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Mar 18, 2006 7:59 pm
Reply with quote

Hi Yogesh,

It would be helpful if you provided the following info:

JCL used VB vs V.
FDs in pgm (IP & OP) VB vs V. If the same just show 1 set.
READs/WRITEs in pgm (IP & OP) VB vs V. If the same just show 1 set.
Tell us HOW it doesn't work. Error msgs, output samples, etc.
Back to top
View user's profile Send private message
yogesh

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Sun Mar 19, 2006 2:55 pm
Reply with quote

hi

i am attaching the infor
please have a look any help from u all will be a grt help

thanks in advance
Back to top
View user's profile Send private message
yogesh

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Sun Mar 19, 2006 2:59 pm
Reply with quote

When i use the same program for VB file conversion it works
but it gives me the abend when i use the program for V files.
What might be the reasons
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Sun Mar 19, 2006 7:04 pm
Reply with quote

I see no obvious problem

try dropping LRECL and/or BLKSIZE from JCL DD for output


what ABEND do you receive?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Mar 19, 2006 8:05 pm
Reply with quote

Hi Yogesh,

As Dave said, what you provided looks OK, with possibly one exception. You vary the rec from 270, while the IP rec is defined as length 166.

COBOL variable rec lengths do not contain the length of the RDW. They are only considered in JCL rec/blk length calcs.

That may not be the cause of your prob, but you may want to consider changing it to 166. Also could you include the READ/WRITEs for the files.

Thanx and
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top