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

convertin VB to FB file with Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vinodkumar_pallampati

New User


Joined: 29 Jun 2010
Posts: 20
Location: chennai

PostPosted: Fri Nov 04, 2011 8:14 pm
Reply with quote

Hi,

I have a variable block file of LREC=1004 want to convert to FB file. The FB file is already existing. I want to copy the contetnt of VB file to whatever the size of the existing FB excluding the first 4 bytes of VB file. Even discarding the rest of bytes data is fine.


Thanks,
Vinod.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Nov 04, 2011 8:27 pm
Reply with quote

I suggest you look up VTOF in the manual, search the DFSORT forum for examples of its use.
Back to top
View user's profile Send private message
vinodkumar_pallampati

New User


Joined: 29 Jun 2010
Posts: 20
Location: chennai

PostPosted: Fri Nov 04, 2011 8:37 pm
Reply with quote

Hi Bill,

while converting the VB to FB we have to know the output file LREC. Here I don't know the output file LREC it is already existing and the file size may be less than the input file. so is there any way in sort cards with out mentioning the size.

OPTION COPY
OUTFIL FNAMES=SORTOUT,VTOF,OUTREC=(1:5,length)

but i don't know the exact length. is there any possibility of dynamically taking the LREC of existing file and passing to sort card.
Back to top
View user's profile Send private message
vinodkumar_pallampati

New User


Joined: 29 Jun 2010
Posts: 20
Location: chennai

PostPosted: Sat Nov 05, 2011 2:19 pm
Reply with quote

My FB output file always contains data, but I have to override the old data with the new data that is from the VB input file. while copying the VB input file to FB output file truncation of data from the VB file is also fine(since sometime the LREC of FB file is lessthan the VB file).
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
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