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
 
Output as input

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

New User


Joined: 23 Dec 2008
Posts: 69
Location: India

PostPosted: Thu Nov 18, 2010 1:35 pm    Post subject: Output as input
Reply with quote

Code:

//S055     EXEC PGM=ICETOOL                           
//TOOLMSG  DD SYSOUT=*                                 
//DFSMSG   DD SYSOUT=*                                 
//IN1      DD  *                                       
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//OUT1     DD  SYSOUT=*                               
//OUT2     DD  SYSOUT=*                               
//OUT3     DD  SYSOUT=*                               
//TOOLIN DD    *                                       
   COPY FROM(IN1) TO(OUT1) USING(ILC1)                 
   COPY FROM(IN1) TO(OUT2) USING(ILC2)                 
   COPY FROM(OUT1) TO(OUT3) USING(ILC1)               
//ILC1CNTL DD  *                                       
  SORT FIELDS=COPY                                     
//ILC2CNTL DD  *                                       
  SORT FIELDS=COPY                                     
  OUTREC OVERLAY=(3:C'L')                             


is it possible to use output as input in ICETOOL???
My requirement is

The input will have data in which the third position needs to be changed to L. I need a file which has both the input as well as the modified output. If there is any other way to achieve this... it will be helpful
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 18, 2010 2:09 pm    Post subject:
Reply with quote

You are almost there, but I suggest that you DO NOT use DD SYSOUT=* for the OUT1 and OUT2 files.

I have changed them to be
Code:
//OUT1     DD  SPACE=(TRK,(10,10)) 
//OUT2     DD  SPACE=(TRK,(10,10)) 
and the TOOLIN to be
Code:
   COPY FROM(IN1)  TO(OUT3) USING(ILC1) 
   COPY FROM(IN1)  TO(OUT2) USING(ILC2) 
   COPY FROM(OUT2) TO(OUT3) USING(ILC1)
and get the following output
Code:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 18, 2010 2:19 pm    Post subject:
Reply with quote

In fact, thinking about it you do not need them, change TOOLIN to
Code:
   COPY FROM(IN1) TO(OUT3) USING(ILC1)
   COPY FROM(IN1) TO(OUT3) USING(ILC2)
Back to top
View user's profile Send private message
sijayapal

New User


Joined: 23 Dec 2008
Posts: 69
Location: India

PostPosted: Thu Nov 18, 2010 2:31 pm    Post subject:
Reply with quote

yes i am almost there... how dumb i didn't think that i wrote to a sysout icon_redface.gif icon_rolleyes.gif
Back to top
View user's profile Send private message
sijayapal

New User


Joined: 23 Dec 2008
Posts: 69
Location: India

PostPosted: Thu Nov 18, 2010 2:52 pm    Post subject:
Reply with quote

Expat i am not getting the output
Quote:
and get the following output Code:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX



I getting only three records in the output. Please share the jcl that you used.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 18, 2010 3:09 pm    Post subject:
Reply with quote

Code:
//S055     EXEC PGM=ICETOOL             
//TOOLMSG  DD SYSOUT=*                 
//DFSMSG   DD SYSOUT=*                 
//IN1      DD  *                       
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//OUT3     DD  SYSOUT=*                 
//TOOLIN DD    *                       
   COPY FROM(IN1) TO(OUT3) USING(ILC1) 
   COPY FROM(IN1) TO(OUT3) USING(ILC2) 
//ILC1CNTL DD  *                       
  SORT FIELDS=COPY                     
//ILC2CNTL DD  *                       
  SORT FIELDS=COPY                     
  OUTREC OVERLAY=(3:C'L')               
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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