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

Multiple STARTAT condition for DFSORT


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

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Mon Apr 13, 2009 6:42 pm
Reply with quote

Can we have multiple STARTAT condition using OR and AND?

Code:
INREC PARSE=(%01=(STARTAT=C'BL7314',FIXLEN=44)),
  BUILD=(%01)                                     
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: Mon Apr 13, 2009 7:33 pm
Reply with quote

Did you look at the manual?
Do you know hou to read this:
Code:
       _____________________________________________________________________
      |                                                                     |
      |              <_,____________________________________________        |
      |                             <_,________________________     |       |
      |  >>__PARSE=(___ _%nn=_ __(___ _FIXLEN=m_______________ |__)_|_)__>< |
      |                |_%=___|      |_ _ABSPOS=p_ ___________|             |
      |                              | |_ADDPOS=x_|           |             |
      |                              | |_SUBPOS=y_|           |             |
      |                              | <_,__________________  |             |
      |                              |__ _STARTAFT=string__ |_|             |
      |                              |  |_STARTAFT=BLANKS__|  |             |
      |                              |  |_STARTAT=string___|  |             |
      |                              |  |_STARTAT=BLANKS___|  |             |
      |                              |  |_STARTAT=NONBLANK_|  |             |
      |                              | <_,________________    |             |
      |                              |__ _ENDBEFR=string_ |___|             |
      |                              |  |_ENDBEFR=BLANKS_|    |             |
      |                              |  |_ENDAT=string___|    |             |
      |                              |  |_ENDAT=BLANKS___|    |             |
      |                              |_ _PAIR=APOST_ _________|             |
      |                                |_PAIR=QUOTE_|                       |
      |                                                                     |
      |_____________________________________________________________________|

The little "<_,__________________" means you can go back and repeat.......
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: Mon Apr 13, 2009 9:47 pm
Reply with quote

himanshu7,

Yes, you can have multiple STARTAT operands. Whichever one is found first for a particular record will be used. For example:

Code:

  INREC PARSE=(%01=(STARTAT=C'BL7314',STARTAT=C'CL7314',
     FIXLEN=44)),
    BUILD=(%01)     


will find BL7314 or CL7314.
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Tue Apr 14, 2009 10:40 am
Reply with quote

Thank you Frank and CICS guy.... icon_lol.gif
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top