Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7314

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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us