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
 

 

Convert the files from fixed format to Variable block format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Convert the files from fixed format to Variable block format
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    Post subject: Re: Variable files
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    Post subject:
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: 247
Location: Cincinnati OH USA

PostPosted: Sat Mar 18, 2006 7:58 pm    Post subject:
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    Post subject:
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    Post subject: Re: Convert the files from fixed format to Variable block fo
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    Post subject:
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: 247
Location: Cincinnati OH USA

PostPosted: Sun Mar 19, 2006 7:04 pm    Post subject:
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    Post subject:
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    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 Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm


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