Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us