Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7314

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: 7314

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
No new posts Need urgent suggestion on DFSORT subratarec DFSORT/ICETOOL 6 Wed Mar 21, 2018 8:46 pm
No new posts Formatting using DFsort Guru Nandu DFSORT/ICETOOL 5 Thu Nov 30, 2017 7:33 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

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