View previous topic :: View next topic |
Author |
Message |
tempuser Beginner
Joined: 05 Oct 2005 Posts: 28 Topics: 20 Location: INDORE
|
Posted: Wed Aug 01, 2007 7:47 am Post subject: connect to horizantal from groups |
|
|
Hi,
I am having a FB file with 133 as LRECL.The input of the file looks
Code: |
XXXXXX1 --------- STRING(S) FOUND --------------
41 //JS100 EXEC YYYYYY,
XXXXXX2 --------- STRING(S) FOUND --------------
33 //JS010 EXEC YYYYYYY,
XXXXXX3 --------- STRING(S) FOUND --------------
47 //JS020 EXEC YYYYYYY,
47 //JS030 EXEC YYYYYYY,
47 //JS040 EXEC YYYYYY1,
|
The XXXXXX1 is having the start position of 3 and it can have max of 8 chracters.The STRING(S) FOUND is having the start position at 41.
I want to generate an o/p file as
Code: |
XXXXXX1 YYYYYY
XXXXXX2 YYYYYY
XXXXXX3 YYYYYY YYYYYYYY YYYYYY1
|
is this possible thru SYNCSORT ?
Thank you |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Wed Aug 01, 2007 8:14 am Post subject: Re: connect to horizantal from groups |
|
|
tempuser wrote: | Code: | 47 //JS020 EXEC YYYYYYY,
47 //JS030 EXEC YYYYYYY,
47 //JS040 EXEC YYYYYY1, |
| Are they all on the same line? |
|
Back to top |
|
 |
bprasanna Beginner
Joined: 05 Sep 2003 Posts: 119 Topics: 33 Location: Hyderabad
|
Posted: Wed Aug 01, 2007 8:26 am Post subject: |
|
|
CICSGUY,
No,they are in diffrent lines.
Thanks _________________ ----------------
Thanks&Regards
Bprasanna |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Aug 01, 2007 8:31 am Post subject: |
|
|
tempuser,
Use the option IDPFX which would give you the desired results.
Code: |
//STEP0100 EXEC PGM=ISRSUPC,PARM=(SRCHCMP,IDPFX)
//NEWDD DD DSN=your pds to be searched,
// DISP=SHR
//OUTDD DD SYSOUT=*
//SYSIN DD *
SRCHFOR 'search string'
/*
|
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Sat Oct 06, 2007 3:24 am Post subject: |
|
|
Kolusu,
IDPFX sur does save a lot of parsing.......................!!
thx for the tip
dbz _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
|
|