IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

O/P file is not getting populated


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Thu Jul 15, 2010 7:01 pm
Reply with quote

Hi,

I am using the jcl as given below:

Code:


//STEP07   EXEC PGM=ICETOOL
//TOOLMSG  DD  SYSOUT=*                                               
//DFSMSG   DD  SYSOUT=*                                           
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(500,500)),DISP=(MOD,PASS)   
//SORTIN   DD DSN=OPERA12,FILE1,                       
//            DISP=SHR                                               
//         DD DSN=OPERA12.FILE2,                       
//            DISP=SHR                                               
//SORTOUT  DD DSN=OPERA12.FILE3,                   
//            DISP=(,CATLG,DELETE),               
//            SPACE=(CYL,(300,300),RLSE),AVGREC=K,VOL=(,,,59)       
//TOOLIN DD *                                                       
 COPY FROM(SORTIN) TO(T1)  USING(CTL4)                               
 OCCUR FROM(T1) LIST(SORTOUT) -                                     
             TITLE('                     XXXXXXXXXXXXXXXXXXXXXXX') -
             DATE-                                         
             PAGE -                                         
             HEADER('ABC') ON(1,14,CH) -                   
             HEADER('DE') ON(19,2,CH) -                     
             HEADER('DATE') ON(21,10,CH)-                   
             HEADER('YYYYYYY') ON(31,1,CH)-                 
             HEADER('MESSAGE') ON(36,12,CH)-               
             HEADER(COUNTXX)  ON(VALCNT,N06) -           
             BLANK                                         
/*                                                         
//CTL4CNTL DD *                                             
  SORT FIELDS=(1,18,CH,A)                                   
/*                                                         


Here o/p file going empty everytime. But when we are writing the SORTOUT to the spool, spool is geeting populated. We want to write the details in the file only.

File1: 47/FB
File2: 47/FB

Our client mainframe is using the below version of DFSORT:

Code:

ICE143I 0 BLOCKSET     SORT  TECHNIQUE SELECTED                                 
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 0 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 09:02 ON THU JU


Please help to resolve the issue.

Thanks
Gagan
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jul 15, 2010 8:02 pm
Reply with quote

GaganGarg wrote:
Our client mainframe is using the below version of DFSORT:

Code:

ICE143I 0 BLOCKSET     SORT  TECHNIQUE SELECTED                                 
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 0 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 09:02 ON THU JU
Feel free to post the entire output....
Back to top
View user's profile Send private message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Thu Jul 15, 2010 9:51 pm
Reply with quote

Could you please elaborate more.
Back to top
View user's profile Send private message
Skolusu

Senior Member


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

PostPosted: Thu Jul 15, 2010 10:06 pm
Reply with quote

GaganGarg,

Show me the following messages from TOOLMSG after the OCCUR operator.

ICE603I
ICE628I
ICE638I
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Jul 15, 2010 10:34 pm
Reply with quote

Gagan,

I don't know if this is the problem, but it's worth trying.

Use LIST(OUT) instead of LIST(SORTOUT) and change the //SORTOUT DD to a //OUT DD.

Since SORTOUT is the name used by DFSORT for the normal output and LIST is NOT the normal output, using LIST(SORTOUT) may be causing a problem.
Back to top
View user's profile Send private message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Fri Jul 16, 2010 6:01 pm
Reply with quote

HI Frank,

You were Right. Whatever you suggested, worked fine. Thanks A lot for the valuable suggestion. icon_biggrin.gif

Thanks
Back to top
View user's profile Send private message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Fri Jul 16, 2010 6:16 pm
Reply with quote

@ Skolusu

Code:

ICE603I 0 INFORMATION PRINTED IN SORTOUT  DATA SET                   
ICE628I 0 RECORD COUNT:  000000001142137                             
ICE638I 0 NUMBER OF RECORDS RESULTING FROM CRITERIA:  000000000053995


These were the messages displayed in the spool. But the solution suggested by Frank worked fine. icon_smile.gif

Thanks all for the help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top