View previous topic :: View next topic
|
Author |
Message |
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Can we have multiple STARTAT condition using OR and AND?
Code: |
INREC PARSE=(%01=(STARTAT=C'BL7314',FIXLEN=44)),
BUILD=(%01) |
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Thank you Frank and CICS guy.... |
|
Back to top |
|
|
|