Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
To remove the spaces using SORT Card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: To remove the spaces using SORT Card
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

Senior Member


Joined: 21 Sep 2010
Posts: 2422
Location: NY,USA

PostPosted: Tue Apr 30, 2019 5:29 pm    Post subject:
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    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 Problem while trying to manipulate re... amitc23 DFSORT/ICETOOL 3 Tue Jun 30, 2020 1:19 pm
No new posts How to remove remote file older than ... ssuthagar All Other Mainframe Topics 4 Thu Jun 04, 2020 6:26 am
No new posts Sort on different fields, removing du... MOHIT KUMAR GUPTA SYNCSORT 8 Thu Apr 16, 2020 5:54 pm
No new posts Please help - SORT with SUM fields an... clearskynot DFSORT/ICETOOL 6 Thu Apr 09, 2020 11:01 am
No new posts Substring for 2 files in Sort JCL Shubhendu Chakraborty DFSORT/ICETOOL 1 Wed Nov 20, 2019 11:07 am

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