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

Copy data from VB to FB file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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 Developer


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

PostPosted: Fri Jun 22, 2007 1:23 am
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
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
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: 1702
Location: Australia

PostPosted: Mon Jan 31, 2011 7:16 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top