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
 

 

Browse the file (when OCCURS clause in the Copybook)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon Jun 08, 2009 11:14 pm    Post subject: Browse the file (when OCCURS clause in the Copybook)
Reply with quote

Hi Experts,

I have one input file with the length of say 4534 bytes.
Its copybook contains
02 WS-OCCURS-MASTER OCCURS 0 TO 50 TIMES
DEPENDING ON WS-NBR-MASTER
INDEXED BY WS-MAST.

..
..
.
.


In this case How should I proceed further and the find the value of any particular variable from the input file?

Please help me out.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Jun 28, 2009 11:49 am    Post subject:
Reply with quote

Hello,

Open the file in Browse and scroll right/left to the positions you want to look at.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sun Jun 28, 2009 12:51 pm    Post subject:
Reply with quote

If you are looking for some specific value(s) out of the multiple "occurences" -- select "temporary criteria" while browing through File Aid and then restrict the search for specific value(s).
Back to top
View user's profile Send private message
Sam Davies

New User


Joined: 25 Jun 2009
Posts: 6
Location: UK

PostPosted: Tue Jun 30, 2009 6:25 pm    Post subject:
Reply with quote

Hi,

In version of 9.0 of File-AID, they introduced support for ODO (occurs depending on).

In your formatted selection criteria, you can enter OCCURS ALL , OCCURS ANY (this is the default) or OCCURS EVERY as a primary command. This is what they allow you to do.

OCCURS ALL - selection criteria defined, for a field, is specific to the occurence identified in the copybook layout on your screen.

OCCURS ANY - selection criteria defined, for a field, apply to any occurence that meets that citeria.

OCCURS EVERY - selection criteria defined, for a field, must be satisfied in EVERY occurence.

Using the above, you are able to better define the selection criteria for the record and occurence you are interested in.

Have a look in the user guide, for more information.

Cheers.

Sam.
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 -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 0 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am


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