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
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am


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