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 

How EDIT Masks work??

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
OSCORP
Beginner


Joined: 15 Oct 2004
Posts: 29
Topics: 8

PostPosted: Mon Mar 14, 2005 10:10 pm    Post subject: How EDIT Masks work?? Reply with quote

Hi,

Can anybody please let me know how EDIT masks work??

Code:
3/,2:'AVERAGE PRICE OF BOOK IN STOCK: ',
AVG=(170,4,BI,M18),

3/,2:'TOTAL PRICE OF BOOKS IN STOCK: ',
TOTAL=(170,4,BI,EDIT=($II,IIT.TT)))


I am trying to use edit masks for these numeric fields; but as I am increasing the mask, I am getting different results eventhough I am performing operations on the same field.

Need to know how it works.

Regs
OsCorp
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 15, 2005 8:48 am    Post subject: Reply with quote

OSCORP,

Check this link to "DFSORT Application Programming Guide" which explains the edit masks in detail (Search for M18 in this link)

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA00/3.13?DT=20031124143823

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Tue Mar 15, 2005 11:17 am    Post subject: Reply with quote

M0-M26 are predefined DFSORT edit masks as shown here:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA00/TBLOFMASKX?SHELF=&DT=20031124143823&CASE=&ScrollTOP=TBLOFMASKX#TBLOFMASKX

EDIT=(pattern) lets you define your own edit masks using I for an insignificant digit, T for a significant digit, and S for a sign along with SIGNS=(a,b,c,d).

For complete information on DFSORT's edit masks, see the discussion of "OUTFIL Control Statements" in Chapter 3 of "DFSORT Application Programming Guide". You can access all of the DFSORT books online from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
_________________
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
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
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