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

Help Needed in DFSORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 792
Location: Chennai, India

PostPosted: Tue Oct 30, 2012 12:40 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 30, 2012 12:58 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 30, 2012 1:58 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
Search our Forums:

Back to Top