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
 

 

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 Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


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