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

Next line in OUTREC


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

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Mon Jan 11, 2010 2:43 pm
Reply with quote

How to use go to next line in Outrec command.
I have writen below code to created a dynamic Include Cond.
Code:
OUTREC=(2X,                       
C'INCLUDE COND=(3,3,CH,EQ,C',       
X'7D',                             
C'XXX',                             
X'7D',                             
C',AND,230,1,CH,NE,C',             
X'7D',                             
C'D',                               
X'7D',                             
C',',                               
3X,C'-',20X) 


The above will create the following code
INCLUDE COND=(3,3,CH,EQ,C'IOR',AND,230,1,CH,NE,C'D', -

but I want to use one more condition so the o/p will be like below

INCLUDE COND=(3,3,CH,EQ,C'IOR',AND,230,1,CH,NE,C'D', -
AND,163,1,CH,NE,C'D', -

Can anyone help me how goto next line in Outrec.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jan 11, 2010 3:02 pm
Reply with quote

'bout halfway down the page is an example of a multiline include statement
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Jan 11, 2010 3:58 pm
Reply with quote

Hello Deep,

I think you want desired output as

Code:

   INCLUDE COND=(3,3,CH,EQ,C'IOR',AND,230,1,CH,NE,C'D',
     AND,163,1,CH,NE,C'D', 


Instead of
Code:

    INCLUDE COND=(3,3,CH,EQ,C'IOR',AND,230,1,CH,NE,C'D', -
     AND,163,1,CH,NE,C'D', -


As mentioned by Dick
Followng sort card will give you desired result ( Might not be Optimal)
Code:

  OPTION COPY                                   
  OUTFIL FNAMES=OUT,                             
    OUTREC=(2X,                                   
     C'INCLUDE COND=(3,3,CH,EQ,C',                 
     X'7D',                                         
     C'10R',                                       
     X'7D',                                         
     C',AND,230,1,CH,NE,C',                         
     X'7D',                                         
     C'D',                                         
     X'7D',                                         
     C',',                                         
     3X,20X,/,                                     
     C'AND,163,1,CH,NE,C',X'7D',C'D',X'7D',C',',20X)
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Mon Jan 11, 2010 4:32 pm
Reply with quote

Thank you very much..
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts Repeat a DD line- comment and insert ... CA Products 3
Search our Forums:

Back to Top