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
 

 

SYNCSORT Converting FB to VB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT Converting FB to VB
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: 500
Location: USA

PostPosted: Thu Mar 13, 2008 2:24 am    Post subject:
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    Post subject:
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

Senior Member


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

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

Hello,

Check these links,
http://www.ibmmainframes.com/viewtopic.php?t=28877&highlight=vtof
another one..
http://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    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 decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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