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
 

 

parameter driven source code of jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
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

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
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: 2360
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: 1439
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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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
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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am


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