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

Filling with Spaces


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Wed Jan 25, 2006 4:56 pm
Reply with quote

Hi,
I have a Variable record length file (MAX length will be 2000, MIN length will be 6 - Where the first 6 characters will help to identify what record it is). For some reasons i need to fill in the first 3 characters of the file with spaces. This can be done by SORT, Can someone let me know how ?

Thanks,
Itanium
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Jan 25, 2006 7:02 pm
Reply with quote

Please use this, hope it helps

SORT FIELDS=COPY
OUTREC FIELDS=(C' ',1,10)

give three spaces in between codes, and start length and end length of input file you need it in the output file.

Regards
Jai
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
No new posts How to remove spaces in between. SYNCSORT 12
No new posts File transfer from host with filler f... TSO/ISPF 15
Search our Forums:

Back to Top