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
 

 

How to add a space at EOF

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

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Fri Aug 12, 2011 6:28 pm    Post subject: How to add a space at EOF
Reply with quote

Hi,

Please guide me how to add spaces at the end of the file using SORT OUTREC.

Regards,
Ramsee
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Aug 12, 2011 6:44 pm    Post subject: Re: How to add a space at EOF
Reply with quote

Ramsee wrote:
Hi,

Please guide me how to add spaces at the end of the file using SORT OUTREC.

Regards,
Ramsee


What do you mean add space at end of file?

What is the file format? record length? show sample example...
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 12, 2011 6:45 pm    Post subject:
Reply with quote

Do you want to add a blank line at the end?
Back to top
View user's profile Send private message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Fri Aug 12, 2011 6:50 pm    Post subject:
Reply with quote

Code:

  JOINKEYS FILE=F1,FIELDS=(42,10,A)       
  JOINKEYS FILE=F2,FIELDS=(1,10,A)         
  JOIN UNPAIRED,F1,ONLY                   
  REFORMAT FIELDS=(F1:5,4096)             
  SORT FIELDS=(5,3,CH,A,10,5,CH,A)         
  OUTFIL FILES=1,OUTREC=(1,4096)           
  OUTFIL FILES=2,OUTREC=(1:5,4092,4093:4X)


This is the sort cards i am using the VB Record layout,

i want to add Blank space at the end of the file.
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 578
Location: USA

PostPosted: Fri Aug 12, 2011 7:19 pm    Post subject:
Reply with quote

Ramsee,
While you certainly can do that but I don't see a reason for it. Did you mean to add 4 spaces starting at 4093 through 4096 positions? Why would do that with VB file?

Are you trying to convert VB file to FB? If that is the case, use CONVERT

Thanks,
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 Aug 12, 2011 11:27 pm    Post subject:
Reply with quote

Ramsee,

It's really not clear what you're trying to do or why.

You need to show an example of your input records and what exactly you expect for the output records. Give the RECFM and LRECL of the input and output files as well, and the starting position, length and format of all relevant fields.
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 Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts How to find Table-space and Index-spa... venksiv DB2 5 Wed Feb 03, 2016 6:16 pm
No new posts VTS and space BobGilbert All Other Mainframe Topics 2 Mon Jan 11, 2016 5:08 am
No new posts DFSORT - Space issue santosh_g DFSORT/ICETOOL 3 Fri Sep 04, 2015 7:44 am
No new posts How to read the db2 table space statu... cmsmoon DB2 3 Fri Apr 17, 2015 2:29 am


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