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
 

 

stop file read once any condition is satisfisfied

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
gpriyaeng

New User


Joined: 04 Jan 2008
Posts: 10
Location: hyderabad

PostPosted: Fri Jan 04, 2008 2:36 pm    Post subject: stop file read once any condition is satisfisfied
Reply with quote

Hi,

i have a file as follows.

.12345
cfvb
fgff
.34567
dgfdf
hhfdhdf
fhfdh
.8797
ddsgsdf
gfgf

every '.' marks the begining of a new record.
i need to read one record( multiple lines is one record ) and move it to a another file and use it for some other processing.
how to just read one record and stop the further reading of the file. like once x'.' character is encountered in the first byte of the record, i need to stop reading from the file...the job should be terminated.

Thanks
Gpriya
Back to top
View user's profile Send private message

gpriyaeng

New User


Joined: 04 Jan 2008
Posts: 10
Location: hyderabad

PostPosted: Mon Jan 07, 2008 11:10 am    Post subject: Reply to: stop file read once any condition is satisfisfied
Reply with quote

what i meant was as follows. in the example mentioned, a single record is built in multiple lines and the char x'.' is the record separator. so x'.' marks the beginning of the next record. i want to read the multiple lines that form a record , concatenate them and write it as a single record in another file.

how do i stop reading from the file once i encounter the first x'.' ? this was the doubt. hope i'm clear.
Back to top
View user's profile Send private message
gpriyaeng

New User


Joined: 04 Jan 2008
Posts: 10
Location: hyderabad

PostPosted: Mon Jan 07, 2008 11:12 am    Post subject: Reply to: stop file read once any condition is satisfisfied
Reply with quote

i want the job to terminate as soon as the char x'.' is found.no further reading of the file should happen and return code shud be 0.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Jan 18, 2008 9:20 pm    Post subject: Reply to: stop file read once any condition is satisfisfied
Reply with quote

Have you referred your problem to the SYNCSORT technical support folks? I'm sure they could offer you a solution that will fit your needs.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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