Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : If you want to make your VSAM data set read-only, use INHIBIT with ALTER command. E.g. ALTER XXX.XX.DATA INHIBIT ALTER XXX.XX.INDEX INHIBIT

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


JCL - INCLUDE Condition

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
nbmurali307
Member


Joined: 31 Mar 2006
Posts: 2

PostPosted: Fri Mar 31, 2006 8:29 am    Post subject: JCL - INCLUDE Condition Reply with quote

I'm new to JCL programming. I have a clarification in JCL; again I don't know whether I could ask the question here, In JCL,

Question 1:
I have created a program to extract information from a set of dataset(s). I tried with 1 dataset with some condition and it gives me the output size of 10 megabytes and tried with 10 dataset(s) with the same condition in one JCL program and it gives me the output size of 10 megabytes. Is there a size limit for JCL output file. If yes, how could I increase from 10megabytes to 20megabytes? and what is maximum limit I could increase.

Question 2:
If I want to filter the records using a JCL include condition, how should I specify the condition for my specific need. Please refer the below example records.

e.g:

20060320 B6J8 PK E2156B 04 0PK74 0009 2
20060320 B6J8 PK E2156B 04 0PK74 0012 1
20060320 B6J8 PK E2156B 29 *I+ 0014 1
20060320 B6J8 PK E2156B 34 QC/+ 0016 1

In the above records column position 30,2 I want to filter the 2bytes from the position 30-31 and it should be alphabets or numeric (both 2 bytes should be alphabets or numeric)

Thanks in advance. Bala
Back to top
View user's profile Send private message

Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 510
Location: San Jose, CA

PostPosted: Fri Mar 31, 2006 9:23 pm    Post subject: Reply with quote

1. The size of the output data set depends on the space you allocated for it. For example, if you specify SPACE=(CYL,(5,5)), you'll get a primary of 5 cylinders and secondaries of 5 cylinders as needed. To increase the size of the output data set, increase the space you allocate for it.

2. You can use a DFSORT job like this to do what you want. I'm assuming by alpahabetic you mean 'A'-'Z' and by numeric you mean '0'-'9'.

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  INCLUDE FORMAT=SS,
   COND=(30,1,EQ,C'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',AND,
         31,1,EQ,C'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
/*


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nbmurali307
Member


Joined: 31 Mar 2006
Posts: 2

PostPosted: Tue Apr 18, 2006 11:13 am    Post subject: JCL - INCLUDE Condition Reply with quote

Hi,

First, I have no idea how the cylinder definition work, how many do I need to define as the primary and how many as the secondary in order to capture all the data I need. Secondly, do I have a limit on how many cylinders I can define in our JCL?

how do I decide how many primary/secondary cylinders to define.

Thanks in advance.

Bala
Back to top
View user's profile Send private message
Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 510
Location: San Jose, CA

PostPosted: Tue Apr 18, 2006 9:26 pm    Post subject: Reply with quote

That's something you have to determine based on the amount of data you'll be writing to the output data set and the capacity of the devices you're using for output. There are formulas for how much data fits on a track, cylinder, etc for each type of device.

If your output data set size will be equal to your input data set size, you can just look at the space information for the input data set and allocate the same amount for the output data set. One way to check the space used for the input data set is with ISPF 3.2.

This is pretty basic JCL stuff. I'd suggest doing some reading or taking a class.
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Unable to achieve below scenario using ICETOOL 7 sirianangel 241 Wed Aug 25, 2010 10:01 pm
Frank Yaeger View latest post
No new posts Query For IEBPTPCH 2 padmajeet.gaikwad 1698 Mon Oct 26, 2009 10:25 am
padmajeet.gaikwad View latest post
No new posts Commit both in DB2 and MQ 3 jackie 3003 Fri Jul 27, 2007 3:52 pm
dbzTHEdinosauer View latest post
No new posts How to use both lower and upper case letters in cobol? 1 Divya 5160 Fri Mar 09, 2007 10:27 pm
Veera View latest post
No new posts Stop Run in both called and calling programs !!! 2 arrbee 4694 Fri Mar 10, 2006 12:13 pm
jaydeeppal View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB