Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
O/P file is not getting populated

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: O/P file is not getting populated
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: 2150
Location: At my coffee table

PostPosted: Thu Jul 15, 2010 8:02 pm    Post subject:
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: 50
Location: Pune

PostPosted: Thu Jul 15, 2010 9:51 pm    Post subject: Reply to: O/P file is not getting populated
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    Post subject:
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 Moderator


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

PostPosted: Thu Jul 15, 2010 10:34 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us