Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


ICETOOL /DFSORT Question.

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & Utilities
  View previous topic :: View next topic  
Author Message
Krishna
Site Admin


Joined: 27 Jan 2006
Posts: 929

PostPosted: Tue May 20, 2008 6:19 pm    Post subject: ICETOOL /DFSORT Question. Reply with quote

One of the users has send this request to me.... please answer this question..... This user is doing his post graduation. As as part of his project, he need to work on this task.


-----------------------------------------------------------------

Details of the project


The ICECREAM & UMBRELLA SALES data referred to above is the
SURMSTR.TRDATA2 dataset and the software is DFSORT and
ICETOOL. Note that we originally used SURMSTR.TRDATA. In order to
simplify your tasks summing data (so
that you don't have to deal with overflows yourselves), I've created
SURMSTR.TRDATA2 which has the same
data but increases the number of blanks for some of the columns. The
columns of dataset
SURMSTR.TRDATA2 are as follows:



Field Column range

Shop Location 1,17
Year Location 19,4
Month Location 24,2
Ice cream sales Location 27,7
Umbrella sales Location 35,7



Following reports needs to be created using ICETOOL /DFSORT.

The reports you are asked to generate are the ones I originally told you:

1. For each month (e.g. 1980-1, 2005-7), sum up ice cream
sales...........(completed)
2. For each (location,month) pair, produce an overall sum of ice cream
sales (sum over all years).........(completed)
3. For each month, report the best performing location for ice cream sales.
4. Repeat 1-3 above with the umbrella column instead of ice-cream.


i am also sending you the code that i managed to do,

FIRST QUESTION

//SUR0004D JOB 1,UNIVER,CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
//TOOL EXEC PGM=ICETOOL,TIME=NOLIMIT,REGION=1024K
//DATA DD DISP=SHR,DSN=SURMSTR.TRDATA2
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSMSG DD SYSOUT=*
//TEMP DD DISP=(MOD,PASS),DSN=&&TEMP,LRECL=41,RECFM=FB,
// SPACE=(24600,(20,1))
//ABCDCNTL DD *
SORT FIELDS=(24,2,ZD,A,19,4,ZD,A,1,17,CH,A)
/*
//TOOLIN DD *
SORT FROM(DATA) TO(TEMP) USING(ABCD)
STATS FROM(TEMP) ON(27,7,ZD)
DISPLAY FROM(TEMP) LIST(SYSMSG) -
TITLE('REPORT') -
HEADER('LOCATION') ON(1,17,CH) -
HEADER('YEAR') ON(19,4,ZD,NOST) -
HEADER('ICECREAM SALES') ON(27,7,ZD) -
BTITLE('MONTH') BREAK(24,2,ZD) -
BTOTAL('MONTHLY SALES')
/*
//

SECOND QUESTION

000001 //SUR0006Z JOB 1,UNIVER,CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
000002 //TOOL EXEC PGM=ICETOOL,TIME=NOLIMIT,REGION=1024K
000003 //DATA DD DISP=SHR,DSN=SURMSTR.TRDATA2
000004 //TOOLMSG DD SYSOUT=*
000005 //DFSMSG DD SYSOUT=*
000006 //SYSMSG DD SYSOUT=*
000007 //TEMP DD DISP=(MOD,PASS),DSN=&&TEMP,LRECL=41,RECFM=FB,
000008 // SPACE=(24600,(20,1))
000009 //ABCDCNTL DD *
000010 SORT FIELDS=(24,2,ZD,A,1,17,CH,A)
000011 /*
000012 //TOOLIN DD *
000013 SORT FROM(DATA) TO(TEMP) USING(ABCD)
000014 STATS FROM(TEMP) ON(27,7,ZD)
000015 DISPLAY FROM(TEMP) LIST(SYSMSG) -
000016 TITLE('REPORT 2') -
000017 HEADER('LOCATION') ON(1,17,CH) -
000018 HEADER('MONTH') ON(24,2,ZD,NOST) -
000019 HEADER('YEAR') ON(19,4,ZD,NOST) -
000020 HEADER('ICECREAM SALES') ON(27,7,ZD) -
000021 BTITLE('LOCATION') BREAK(1,17,CH) -
000022 BTOTAL('MONTHLY SALES')
000023 /*
000024 //

here we are breaking on the location,is there a better way to do the
second question

i would be very very grate full if you can help us in coding the the
third and forth question and suggesting any changes in the above two
codes two.looking forward for a reply from you as soon as possible.


--------------------------------
_________________
Regards,
Krishna
http://www.mainframegurukul.com
http://www.mainframetutorials.com
http://www.ibmmainframeguru.com
Back to top
View user's profile Send private message Send e-mail

Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 487
Location: San Jose, CA

PostPosted: Tue May 20, 2008 9:09 pm    Post subject: Reply with quote

Quote:
One of the users has send this request to me.... please answer this question..... This user is doing his post graduation. As as part of his project, he need to work on this task.


If this person is doing his post graduate work, he should be quite capable of doing his own assignments. So I'm locking this thread.

If this person wants to learn about DFSORT himself, he can access all of the DFSORT books online at:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://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   This topic is locked: you cannot edit posts or make replies.    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & 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

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Two outputs created as a result of generation of a map 2 Krishna 1504 Mon Jul 12, 2010 5:20 pm
tony_prabu View latest post
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 3 Guest 12378 Wed Jul 07, 2010 8:20 am
anilsani285 View latest post
No new posts File-Aid Help 1 Nicholas 8377 Thu Apr 13, 2006 2:12 pm
rangab View latest post
No new posts Search Batch file-aid help 6 frenchman 9142 Tue Mar 28, 2006 5:30 pm
Guest View latest post
No new posts executing java program thru JCL 1 Guest 7517 Fri Mar 17, 2006 10:14 am
arrbee View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB