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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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