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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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