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

How to add a space at EOF


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 53
Location: Chennai

PostPosted: Fri Aug 12, 2011 6:28 pm
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
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
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: 53
Location: Chennai

PostPosted: Fri Aug 12, 2011 6:50 pm
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: 577
Location: USA

PostPosted: Fri Aug 12, 2011 7:19 pm
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 Developer


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

PostPosted: Fri Aug 12, 2011 11:27 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
No new posts split a name based on space in ASM PL/I & Assembler 9
No new posts Adding space to a dataset - getting D37 ABENDS & Debugging 10
Search our Forums:

Back to Top