IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to search varying dataset name in the Jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Naraismha Reddy

New User


Joined: 23 Apr 2008
Posts: 39
Location: Hyderabad

PostPosted: Wed Aug 12, 2009 11:02 am
Reply with quote

Hi,

I need to code a jcl with the following requirement.

1) I will recive some 300 files a day with the following format


    PRDAP.#AID.DEbbSMPL.Eaaant.Dyymmdd

Where bb --> CA/CB/DA/DB
aaa --> org number (000 to 999)
t --> file type E/P
n --> file number ( 0 to 9)
yymmdd --> date

sample datasets look like


    PRDAP.#AID.DECASMPL.E0011E.D081226
    PRDAP.#AID.DECASMPL.E0011E.D090130
    PRDAP.#AID.DEDASMPL.E0011P.D081226
    PRDAP.#AID.DEDASMPL.E0011P.D090130



FOR the above format only date is fixed i.e. i know only the date.

Now i need to code a jcl where i need to search all the file of this format and write it to a file as input for the next step for some validations.

Here the number of files received may be 100 or 150 or 300.

Could anyone please suggest any ideas for this .

Thanks,
Narasimha
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 12, 2009 11:05 am
Reply with quote

Please search the forum, because you may have found THIS topic which solves your problem.
Back to top
View user's profile Send private message
Naraismha Reddy

New User


Joined: 23 Apr 2008
Posts: 39
Location: Hyderabad

PostPosted: Wed Aug 12, 2009 6:13 pm
Reply with quote

I tried searching for the related topic but I couldn't find any relative answer in the forum.

Could any one please help me in providing idea.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 12, 2009 6:28 pm
Reply with quote

in expat's post, try clicking on 'THIS', there.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 12, 2009 6:29 pm
Reply with quote

Are you being serious ???

Did you click the thread I indicated above.

If you did, and could not find the solution to your problem with the code that I had posted, you should be stuck in a pot and watered twice a week
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top