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
 
Copy data from VB to FB file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Jun 22, 2007 12:01 am    Post subject: Copy data from VB to FB file
Reply with quote

Is there a way to copy a VB file to an FB file, where the VB file LRECL=256 and FB file has LRECL=900?
Back to top
View user's profile Send private message

stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Jun 22, 2007 12:04 am    Post subject:
Reply with quote

How do you want to pad the trailing bytes in the file? Lowvalues, spaces?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Jun 22, 2007 1:23 am    Post subject:
Reply with quote

Assuming you want to pad with blanks, you can use these DFSORT control statements:

Code:

    OPTION COPY
    OUTFIL VTOF,BUILD=(5,252,900:X)
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Jun 22, 2007 12:03 pm    Post subject:
Reply with quote

Thanks Frank, its working. icon_biggrin.gif
Back to top
View user's profile Send private message
rajalg05

New User


Joined: 25 Dec 2010
Posts: 1
Location: Mumbai

PostPosted: Sat Jan 29, 2011 12:28 pm    Post subject: Reply to: Copy data from VB to FB file
Reply with quote

Hey Frank,

Its an old post, dont know if u r still checking this space.

How would the output file be filled from position 252 to 900. Beyond position 900, the output file is filled by spaces.

Thanks,
Raja
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Jan 31, 2011 7:16 am    Post subject:
Reply with quote

Hi,

if file is FB and LRECL=900 there is NO Beyond position 900.

position 253-900 is filled with spaces.


Gerry
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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