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
 

 

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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm


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