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

To remove the spaces using SORT Card


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

New User


Joined: 10 Mar 2011
Posts: 45
Location: india

PostPosted: Tue Apr 30, 2019 3:42 pm
Reply with quote

How to remove the spaces.

I have used the below input file. Input File contains only GDG version. By using I am appending the server path and .XFR to the GDG Version.

Please find the below output File. The Sort card is working fine.


Input File:
A123TST.ABCD.AIF.AAAAA.G0003V00

SORT CARD:
SORT FIELDS=COPY
OUTREC FIELDS=(1:C' touch /apps/acmail/data/batchndm/',
36:1,31,60:C'.XFR')

Output File:
touch /apps/acmail/data/batchndm/A123TST.ABCD.AIF.AAAAA.G0003V00.XFR

But if the GDG File has different Name A123TST.ABCD.AIF.G0003V00 the output file is creating in the below way.

touch /apps/acmail/data/batchndm/A123TST.ABCD.AIF.G0003V00. XFR

There is space creating between G0003V00 and XFR because of the position used in out rec field

How to write a generic sort card. Could please help me out with DF SORT.

The Output should come like touch /apps/acmail/data/batchndm/A123TST.ABCD.AIF.G0003V00.XFR whatever the GDG length would be.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2772
Location: NYC,USA

PostPosted: Tue Apr 30, 2019 5:29 pm
Reply with quote

Look for OUTREC BUILD and SQZ .
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
This topic is locked: you cannot edit posts or make replies. Sort to include records of file 2 int... Java & MQSeries 1
No new posts Converting unpacked fields to pack us... SYNCSORT 4
No new posts SORT for dynamic trailer record + CSV... DFSORT/ICETOOL 14
No new posts SORT HELP - SORT A COLUMN and GROUP B... DFSORT/ICETOOL 9
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top