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
 

 

How to search varying dataset name in the Jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to search varying dataset name in the Jcl
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 12, 2009 11:05 am    Post subject:
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    Post subject: Reply to: How to search varying dataset name in the Jcl
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 12, 2009 6:29 pm    Post subject:
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    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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm


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