Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SORT/ICETOOL Report

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon Jul 09, 2012 8:27 pm    Post subject: SORT/ICETOOL Report
Reply with quote

Hi,
I have an input file of 399 LRECL.

I want to create a report using ICETOOL/SORT.
My report size shouldn't exceed 133 and all the information from the input file needs to be displayed in the Report.

Is it possible to use ICETOOL/OUTFIL, to print 3 row information (133*3 bytes) for each of the record from Input File (399 bytes).

For example:
Input:
Code:
FIRSTINFORMATIONOMIDDLEINFOLASTINFOX

Output:
Code:
FIRST INFORMATION INFO
MIDDLE
LASTINFOX
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Mon Jul 09, 2012 8:41 pm    Post subject:
Reply with quote

Yes, it is possible. Not only possible, but easy. Consult the manual. Look at "reporting" functions and discover the the "/" can give you a new line to put more data on.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Mon Jul 09, 2012 8:45 pm    Post subject:
Reply with quote

There is mismatch in your input amd output

Also how can someone identify the fst,middle and last info ? or is that you wanted to split fst 133,2nd 133 and so on?

Please clarify
Back to top
View user's profile Send private message
Naish

New User


Joined: 07 Dec 2006
Posts: 82
Location: UK

PostPosted: Mon Jul 09, 2012 8:48 pm    Post subject:
Reply with quote

From what I understand, search for RESIZE on the forum or the manual.

Your example doesn't matches your problem description.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Mon Jul 09, 2012 8:51 pm    Post subject:
Reply with quote

RESIZE would do it Naish, but I think that TS mentioned a "report" for which he might have headings and stuff, rather than a plain file,
Back to top
View user's profile Send private message
Naish

New User


Joined: 07 Dec 2006
Posts: 82
Location: UK

PostPosted: Mon Jul 09, 2012 8:59 pm    Post subject:
Reply with quote

Good point Bill. Agree. Thanks.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Jul 09, 2012 9:58 pm    Post subject:
Reply with quote

Bill Woodger wrote:
RESIZE would do it Naish, but I think that TS mentioned a "report" for which he might have headings and stuff, rather than a plain file,


RESIZE Would still be the right solution. You can Use OUTFIL reporting features along with RESIZE. The only difference would the OUTFIL will be seeing the input LRECL as 133 instead of 399.

ex:
Code:

//STEP0100 EXEC PGM=ICETOOL                       
//TOOLMSG  DD SYSOUT=*                             
//DFSMSG   DD SYSOUT=*                             
//IN       DD *                                   
ABCDEFGHIJKLMNOPQRSTUVWXYZ                         
//OUT      DD SYSOUT=*                             
//TOOLIN   DD *                                   
  RESIZE FROM(IN) TO(OUT) TOLEN(10) USING(CTL1)   
//CTL1CNTL DD *                                   
  OPTION COPY                                     
  INREC BUILD=(1,26)                               
  OUTFIL REMOVECC,HEADER1=('MY HEADER ',/,10'*')   
//*


will produce
Code:

MY HEADER     
**********     
ABCDEFGHIJ     
KLMNOPQRST     
UVWXYZ         
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Tue Jul 10, 2012 8:28 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Thanks All for the inputs.

While preparing the OUTREC file, I encounter this error

Code:
ICE201I H RECORD TYPE IS F - DATA STARTS IN POSITION 1                   
ICE126A 9 INCONSISTENT REFORMATTING FOR STLREP  : REASON CODE 04, IFTHEN 0


Code:
           OUTREC=(005:001,70,                                           
                    086:071,05,/,                                         
                    005:077,50,                                           
                    086:128,50,/,                                         
                    001:179,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    021:187,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    042:196,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    163:205,3,PD,EDIT=(SIII.IT),SIGNS=(,-),X,             
                    083:208,6,PD,EDIT=(SII,III,III,IIT),SIGNS=(,-),X,     
                    104:215,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    124:224,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X)


What is incorrect with the OUTREC?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Tue Jul 10, 2012 8:38 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Should that column 163 be 063?
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Tue Jul 10, 2012 10:16 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Oops, that should be 063, is that the problem?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1714
Location: UK

PostPosted: Tue Jul 10, 2012 10:22 pm    Post subject:
Reply with quote

Quickest way to find out? Try it!
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Tue Jul 10, 2012 10:26 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Away from the office network, will update as soon as possible.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Jul 11, 2012 3:36 am    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Even if away from the office, if you can look here, you can look at the manuals.

If I make a suggestion which I don't think is related to your problem I'll say so.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Jul 11, 2012 12:14 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Even with 063, I get the same error icon_sad.gif
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Jul 11, 2012 1:16 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Ah, just notice all those X's on the end of the lines.

Did you account for those when specifying your columns? No.

I'd do it something like this. Columns where needed for spacing across the line, no columns where not needed. I'd have put the X's on a seperate line.

Code:
OUTREC=(005:001,70,                                           
                    086:071,05,/,                                         
                    005:077,50,                                           
                    086:128,50,/,                                         
                    179,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    187,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    196,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    205,3,PD,EDIT=(SIII.IT),SIGNS=(,-),X,             
                    208,6,PD,EDIT=(SII,III,III,IIT),SIGNS=(,-),X,     
                    215,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X,
                    224,8,PD,EDIT=(SIII,III,III,III,IIT),SIGNS=(,-),X)
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Jul 11, 2012 2:30 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

Code:
OUTREC=(002:001,70,                               
        080:071,05,/,                             
        002:077,50,                               
        080:128,50,/,                             
        001:179,8,PD,EDIT=(III,III,III,III,IIT),X,
        021:187,8,PD,EDIT=(III,III,III,III,IIT),X,
        041:196,8,PD,EDIT=(III,III,III,III,IIT),X,
        061:205,3,PD,EDIT=(IIT.IT),X,             
        080:208,6,PD,EDIT=(II,IIT.IIIIT),X,       
        094:215,8,PD,EDIT=(III,III,III,III,IIT),X,
        114:224,8,PD,EDIT=(III,III,III,III,IIT),X)


This worked thanks all.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Jul 11, 2012 2:38 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

You got rid of the sign instead of changing the field positions?

I suppose all your values are always going to be positive but you didn't realise that when you coded the SIGNS originally...
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Jul 11, 2012 3:03 pm    Post subject: Reply to: SORT/ICETOOL Report
Reply with quote

exactly, and there are few modifications to the starting position of the field.
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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us