MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DFSORT - Edit Mask Patterns
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
raveendra_ibm
Beginner


Joined: 02 Apr 2006
Posts: 32
Topics: 10

PostPosted: Fri Sep 07, 2007 12:49 pm    Post subject: Reply with quote

Hi Frank,

I am not at my work place right now and hence cant provide you the extact code. The statements mentioned below were just a sample provided to explain the requirement.

This was quite similar to what I coded and ran successfully (without the period though).

Please feel free to make updations/assumptions on these statements -

Code:
OUTFIL FNAMES=RPT3,LINES=15,                                 

           HEADER2=(/,3:'Branch Revenue Report',               

           30:'Page',PAGE,45:DATE=(MD4-),                       

           2/,3:'Branch',25:'Revenue',50:'Profit',/,           

           3:'---------------',25:'--------',50:'--------'),   

           OUTREC=(3:1,15,X,25:22,7,PD,                         

           EDIT=(III,III,III.TTS),SIGNS=(,-),X,               

           50:29,7,PD,EDIT=(III,III,III.TTS),SIGNS=(,-))

Thanks,
Raveendra.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Sep 07, 2007 1:00 pm    Post subject: Reply with quote

You can use DFSORT statements like this:

Code:

   OUTFIL FNAMES=RPT3,LINES=15,                                 
           HEADER2=(/,3:'Branch Revenue Report',               
           30:'Page',PAGE,45:DATE=(MD4-),                       
           2/,3:'Branch',25:'Revenue',50:'Profit',/,           
           3:'---------------',25:'--------',50:'--------'),   
        IFTHEN=(WHEN=INIT,                                     
          BUILD=(3:1,15,X,25:22,7,PD,                           
           EDIT=(III,III,III.TTS),SIGNS=(,-),X,                 
           50:29,7,PD,EDIT=(III,III,III.TTS),SIGNS=(,-))),     
        IFTHEN=(WHEN=(35,1,CH,EQ,C' '),OVERLAY=(36:C'.'),       
          HIT=NEXT),                                           
        IFTHEN=(WHEN=(60,1,CH,EQ,C' '),OVERLAY=(61:C'.'))       

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raveendra_ibm
Beginner


Joined: 02 Apr 2006
Posts: 32
Topics: 10

PostPosted: Fri Sep 07, 2007 1:09 pm    Post subject: Reply with quote

Thank you Frank,

Looks better Very Happy . I'll try it out when i am back at my desk.....

Have a nice day ahead...

Regards,
Raveendra.
Back to top
View user's profile Send private message
raveendra_ibm
Beginner


Joined: 02 Apr 2006
Posts: 32
Topics: 10

PostPosted: Sun Sep 09, 2007 11:47 pm    Post subject: Reply with quote

Thank you Frank,

Its working !!!

Also the one suggested by Alissa looks amazing !!!

Code:
OUTREC FIELDS=(1,6,PD,EDIT=(II,III,III,III),C'.',6,2,PD,
       EDIT=(TTS),SIGNS=(,,,-))


Thank you Alissa....

Regards,
Raveendra.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group