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
 

 

convertin VB to FB file with Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: convertin VB to FB file with Syncsort
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Nov 04, 2011 8:27 pm    Post subject: Reply to: convertin VB to FB file
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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