Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Help Needed in DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
karthik3883

New User


Joined: 19 Oct 2007
Posts: 37
Location: chennai

PostPosted: Tue Oct 30, 2012 12:35 pm    Post subject: Help Needed in DFSORT
Reply with quote

Hi I have requirement my input file and output file look like this in attachment

could you please help how can i achieve ths in sort

Input:

Code:
/GTSCACOEST   ,152025,0.,0000000000,/GTSCACO           
/GTSCACOEUR   ,152025,0.,0000000000,/GTSCACO           
/GTSCACOUSD   ,152025,0.,0000000000,/GTSCACO           
/GTSOTC USD   ,152025,152025000.,1116359313,/GTSOTC 


Output:

Code:
/GTSCACOEST     ,  152025     ,           0.  ,  0000000000         ,  /GTSCACO
/GTSCACOEUR     ,  152025     ,           0.  ,  0000000000         ,  /GTSCACO
/GTSCACOUSD     ,  152025     ,           0.  ,  0000000000         ,  /GTSCACO
/GTSOTC USD     ,  152025     ,   152025000.  ,  1116359313         ,  /GTSOTC 


Inlined, Code'd, reversed to avoid further confusion (so input comes first, like everyone else).
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Tue Oct 30, 2012 12:40 pm    Post subject:
Reply with quote

Hi,

Please use CODE tags to present the data instead of an attachemnt.

Do you want to squeeze out the spaces? If so, what are the rules for the same? Also, provide RECFM, LRECL of input and output data sets.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Oct 30, 2012 12:58 pm    Post subject: Reply to: Help Needed in DFSORT
Reply with quote

If you just want variable-positioned fields to become fixed-positoned fields, look at PARSE.
Back to top
View user's profile Send private message
karthik3883

New User


Joined: 19 Oct 2007
Posts: 37
Location: chennai

PostPosted: Tue Oct 30, 2012 1:49 pm    Post subject: Reply to: Help Needed in DFSORT
Reply with quote

Hi Gnanas,

I dont want to eliminate spaces,the output file should contain leading and trailing spaces for each column as explained in output screen shot and it is fixed.

and there is no limitiation with file size
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Oct 30, 2012 1:58 pm    Post subject: Reply to: Help Needed in DFSORT
Reply with quote

Don't complain when it was you who confused Gnanas by putting the output file first.

Rather than answering their Gnanas's quesion, why did you feel the need to mention file size?

Look at PARSE. Use it. Requirement satisfied.
Back to top
View user's profile Send private message
karthik3883

New User


Joined: 19 Oct 2007
Posts: 37
Location: chennai

PostPosted: Tue Oct 30, 2012 2:03 pm    Post subject: Reply to: Help Needed in DFSORT
Reply with quote

Hi Bill,

I am not complaining,I just explained my requirement.

anyway thanks for your help will check PARSE

Regards
Karthik
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
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us