Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
parameter driven source code of jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
nileshpbhosle
Currently Banned

New User


Joined: 09 Jul 2008
Posts: 3
Location: hydrabad

PostPosted: Wed Jul 09, 2008 3:29 pm    Post subject: parameter driven source code of jcl
Reply with quote

hi,
i want to retrive data from flat file depending upon count,suppose we need to extract some random data like every 10th or 100th record from flat file,for this i have use JCL and it should be parameter driven.can send me source code for this or at least tell how will i achieve this using parameter concept in JCL.
Back to top
View user's profile Send private message
References
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2039
Location: Israel

PostPosted: Wed Jul 09, 2008 3:35 pm    Post subject:
Reply with quote

JCL by itself can't read files. You need some program.

You can either write your own program or use a ready-made program (aka - utility).

O.
Back to top
View user's profile Send private message
nileshpbhosle
Currently Banned

New User


Joined: 09 Jul 2008
Posts: 3
Location: hydrabad

PostPosted: Wed Jul 09, 2008 3:42 pm    Post subject: Reply to: parameter driven source code of jcl
Reply with quote

actually i want code i dont know how will i achieve this.i want that JCL program which will extract 10th record from flat file using parameter concept.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2039
Location: Israel

PostPosted: Wed Jul 09, 2008 3:44 pm    Post subject:
Reply with quote

No problems, I can write you the code, and also test it.

My fee (for the summer only) is $90 per hour.

O.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1477
Location: Bangalore,India

PostPosted: Wed Jul 09, 2008 3:46 pm    Post subject:
Reply with quote

Nilesh,

First thing your requirement is not at all clear.

As O pointed, you need to have some program to read flat file.

You dont know the language/utility required for this. But wanted a result. Seems like a 'very good design' (read in opp way).
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


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

PostPosted: Wed Jul 09, 2008 6:29 pm    Post subject: Re: Reply to: parameter driven source code of jcl
Reply with quote

nileshpbhosle wrote:
actually i want code i dont know how will i achieve this.i want that JCL program which will extract 10th record from flat file using parameter concept.
Well, little did I could understand from this, however, do you want every tenth record or only first 10th record.

Does this
Code:
//SYSIN   DD *                   
   OPTION COPY                   
   OUTFIL STARTREC=?,SAMPLE=?   
/*                               


solves your problem...
Back to top
View user's profile Send private message
nileshpbhosle
Currently Banned

New User


Joined: 09 Jul 2008
Posts: 3
Location: hydrabad

PostPosted: Wed Jul 09, 2008 6:37 pm    Post subject: Reply to: parameter driven source code of jcl
Reply with quote

thanx anuj,
but i want it for every 10th record,every 10th record should be fetch from flat file and i have to insert it into other file.but i have do this using parameter driven JCL.
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


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

PostPosted: Wed Jul 09, 2008 6:53 pm    Post subject:
Reply with quote

Hmm..(old Villain ..re-entry)..just in four posts he is banned...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1