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
 

 

Multiple STARTAT condition for DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Multiple STARTAT condition for DFSORT
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: 2150
Location: At my coffee table

PostPosted: Mon Apr 13, 2009 7:33 pm    Post subject:
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 Moderator


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

PostPosted: Mon Apr 13, 2009 9:47 pm    Post subject:
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    Post subject:
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    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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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