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

SYNCSORT Converting FB to VB


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

New User


Joined: 13 Feb 2008
Posts: 8
Location: US

PostPosted: Wed Mar 12, 2008 9:17 pm
Reply with quote

Hi,

I have a VB file of 192 LRECL(This can have records of 57, 72, 192 bytes).
I am doing a sort which will change one of the field values and write to a 192 bytes FB file.
Then with one more sort, i am converting FB to VB of 192 LRECL.
sort card looks like this,
OPTION COPY
OUTFIL FNAMES=SORTOUT,FTOV,OUTREC=(1,192)

The question is, all the records in the final VB file will be of 192 bytes(even 57 and 72 LRECL records are converted into 192 LRECL). So when i do a COMPAREX am getting differences in all the records.
Is there any correct way of doing it?

Thanks.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Mar 13, 2008 2:24 am
Reply with quote

Try this:
Code:
OUTFIL FNAMES=SORTOUT,OUTREC=(1,192),FTOV,VLTRIM=C' '
Back to top
View user's profile Send private message
srinathangya

New User


Joined: 19 Dec 2005
Posts: 77

PostPosted: Thu Mar 13, 2008 9:03 am
Reply with quote

Will U pls let me know how to copy a variable length file into a FB file?
Pls help me with the code :-)

Reg,
Srinath.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 13, 2008 1:24 pm
Reply with quote

Hello,

Check these links,
www.ibmmainframes.com/viewtopic.php?t=28877&highlight=vtof
another one..
www.ibmmainframes.com/viewtopic.php?t=22149&highlight=vtof

Search on VTOF, you'll get many more hits.

Please search first before posting & then come up with queris if previous threads don't provide you a satisfactionary answer.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
Search our Forums:

Back to Top