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

how to complete the end of a record with spaces


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

New User


Joined: 08 Aug 2006
Posts: 12
Location: FRANCE

PostPosted: Fri Sep 20, 2024 3:38 pm
Reply with quote

With DFSORT I want to complete the end of a record with spaces without knowing the length of the record.
For example from a file of LRECL=80 to a file of LRECL=160
By default DFSORT add data with low value.

SORT FIELDS=COPY
OUTREC OVERLAY=(80:6X) <== Is it possible to specify the rest of the
record and not a value like Here : 6

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

Senior Member


Joined: 29 Apr 2008
Posts: 2140
Location: USA

PostPosted: Fri Sep 20, 2024 4:43 pm
Reply with quote

Code:
 OUTREC OVERLAY=(160:X)


Why not just to try, and to verify the result???!!!
Back to top
View user's profile Send private message
PUMA

New User


Joined: 08 Aug 2006
Posts: 12
Location: FRANCE

PostPosted: Fri Sep 20, 2024 11:01 pm
Reply with quote

as I wanted a variable value I implemented this jcl :

// EXPORT SYMLIST=*
// SET LNG=120
//MYLOG DD SYSOUT=*
//SYSIN DD *,SYMBOLS=(EXECSYS,MYLOG)
SORT FIELDS=COPY
OUTREC OVERLAY=(&LNG:X)

And it's OK

Thanks
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 Copy only TEXT or String from a record SYNCSORT 4
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts BPXBATCH SFTP to remote path having s... All Other Mainframe Topics 6
No new posts Sort based on the record type DFSORT/ICETOOL 1
Search our Forums:

Back to Top