Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts VSAM BUFFER SPACE? John Poulakos CICS 17 Thu Mar 22, 2018 2:54 am
No new posts *MASTER* address space abending at IPL Alan Playford All Other Mainframe Topics 2 Mon Mar 12, 2018 8:02 am
No new posts The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us