<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7801780650428221492</id><updated>2024-08-29T00:58:55.543+05:30</updated><category term="DB2"/><category term="ISPF"/><category term="COBOL"/><category term="File-Aid"/><category term="JCL"/><category term="DF Sort"/><category term="VSAM"/><category term="General"/><category term="SDSF"/><category term="CICS"/><category term="REXX"/><title type='text'>Mainframe Tips for Developers</title><subtitle type='html'>Tips and Ideas for Mainframe Developers</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>43</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-8238137228117644444</id><published>2012-03-21T15:08:00.000+05:30</published><updated>2012-03-21T15:08:19.832+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="COBOL"/><title type='text'>COBOL Code Optimization</title><summary type="text">To assist in the optimization of the code, you should use the OPTIMIZE compiler option. With theOPTIMIZE(STD) or OPTIMIZE(FULL) options in effect, you may receive optimizations that include:

eliminating unnecessary branches
simplifying inefficient branches
simplifying the code for the out-of-line PERFORM statement, moving the performed paragraphs in-line,where possible
simplifying the code for a</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/8238137228117644444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/cobol-code-optimization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/8238137228117644444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/8238137228117644444'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/cobol-code-optimization.html' title='COBOL Code Optimization'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-4527465966628553021</id><published>2012-03-21T14:08:00.000+05:30</published><updated>2012-03-21T14:08:11.404+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="COBOL"/><title type='text'>ARITH Compiler Option</title><summary type="text">
ARITH affects the maximum number of digits that you can
code for integers, and the number of digits used in fixed-point
intermediate results. By specifying ARITH complier option we can control the maximum number of
 digits allowed for decimal numbers (packed decimal, zoned decimal and 
numeric-edited data items and numeric literals).       &amp;nbsp;

ARITH(EXTEND)&amp;nbsp; - Max. Number of digits 31.</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/4527465966628553021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/arith-compiler-option.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4527465966628553021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4527465966628553021'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/arith-compiler-option.html' title='ARITH Compiler Option'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-4425867368283036959</id><published>2012-03-21T14:02:00.001+05:30</published><updated>2012-03-21T14:02:15.438+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DF Sort"/><title type='text'>Converting a file from VB to FB.</title><summary type="text">DFSORT can be used to do VB to FB conversion, when sorting, copying or 
merging. The VTOF or CONVERT and OUTREC operands of OUTFIL can be used 
to change variable-length (e.g. VB) input records to fixed-length (e.g. 
FB) output records. VTOF or CONVERT indicates that conversion is to be 
performed and OUTREC defines the reformatted records. All output data 
sets for which VTOF or CONVERT is used </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/4425867368283036959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/converting-file-from-vb-to-fb.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4425867368283036959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4425867368283036959'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/converting-file-from-vb-to-fb.html' title='Converting a file from VB to FB.'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-4703690467003079242</id><published>2012-03-21T13:59:00.000+05:30</published><updated>2012-03-21T13:59:09.680+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><category scheme="http://www.blogger.com/atom/ns#" term="ISPF"/><title type='text'>Recovering Deleted Flat Files</title><summary type="text">Flat files can be recovered by following the below mentioned steps.

Start 6&amp;nbsp;
HLIST BCDS DSN(&#39;filename&#39;)&amp;nbsp;
Wait for the system notification
Type the command HRECOVER &#39;filename&#39; and wait for system notification

Different variations of HRECOVER are given below.

HRECOVER &#39;filename&#39; recovers with same name
HRECOVER ‘old filename’ NEW (&#39;new filename&#39;) recovers and assigns new name
HRECOVER </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/4703690467003079242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/recovering-deleted-flat-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4703690467003079242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4703690467003079242'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/recovering-deleted-flat-files.html' title='Recovering Deleted Flat Files'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-2259334957691647275</id><published>2012-03-21T13:49:00.002+05:30</published><updated>2012-03-21T13:49:24.834+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ISPF"/><title type='text'>AUTOTYPE Suggestion</title><summary type="text">How wonderful it feels when Internet explorer suggests names for URLs 
when we start typing the first few letters!

Our mainframe also has the 
ability to do pretty much the same. Using ‘KEYS’ command on the command line, assign a free PF key with the value ‘AUTOTYPE’. We are all set.



Now
 use 3.4 to go to the Data Set list utility and then type the first few 
qualifier of the required data </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/2259334957691647275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/autotype-suggestion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/2259334957691647275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/2259334957691647275'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/autotype-suggestion.html' title='AUTOTYPE Suggestion'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOdHZNhXMKr6J_ZXKjonmogbQt8Lm3XcdgRfnd_e1anFEzxD7EuKopTLvtSo9S_hZ59HWsMS-iEQcPZJxlGvqmrVQOTVaaCv56EZnVmRVYg-VLiCexTzMPJBBX-Zav5tCMUrn2uR7IAPUN/s72-c/autotype.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-1877449704847500161</id><published>2012-03-21T11:58:00.006+05:30</published><updated>2012-03-21T12:02:33.170+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Options on DECLARE CURSOR</title><summary type="text">∙ Use FOR READ/FETCH ONLY or WITH UR for retrieval only cursors.
∙ Use OPTIMIZE when you know the accurate number of rows that will be fetched
∙ Use ORDER BY only when sequence is important
∙ Use WITH HOLD statement to prevent COMMIT from destroying the cursor position in batch Programs.
∙ Select only those fields that you truly need
∙ Use only DCLGEN variables as predicates

While declaring </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/1877449704847500161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/options-on-declare-cursor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/1877449704847500161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/1877449704847500161'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/options-on-declare-cursor.html' title='Options on DECLARE CURSOR'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-8549867697700614623</id><published>2012-03-21T11:51:00.000+05:30</published><updated>2012-03-21T11:51:02.496+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Common SQL Codes</title><summary type="text">
Successful Execution SQLCODE



000

SUCCESSFUL EXECUTION                                              



Warning SQLCODE



+012

THE UNQUALIFIED COLUMN NAME column-name WAS INTERPRETED AS A CORRELATED REFERENCE



+098

A DYNAMIC SQL STATEMENT ENDS WITH A SEMICOLON



+100

ROW NOT FOUND FOR FETCH, UPDATE OR DELETE, OR THE RESULT OF A QUERY IS AN EMPTY TABLE



+110

SQL UPDATE TO A DATA </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/8549867697700614623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/common-sql-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/8549867697700614623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/8549867697700614623'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/common-sql-codes.html' title='Common SQL Codes'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-6275829121138933203</id><published>2012-03-21T11:35:00.000+05:30</published><updated>2012-03-21T11:35:16.249+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Useful List of SYSIBM tables</title><summary type="text">SYSCHECKDEP Column references for CHECK constraintsSYSCHECKS CHECK constraint specificationsSYSCHECKS2 (V7) Information about CHECK constraints on DB2 Catalog tables created for V7 or laterSYSCOLAUTH The UPDATE privileges held by DB2 users on table or view columnsSYSCOLDIST Cardinality, frequent value, and non-padded frequent value distribution statistics for the first key column of an index </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/6275829121138933203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/useful-list-of-sysibm-tables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/6275829121138933203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/6275829121138933203'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/03/useful-list-of-sysibm-tables.html' title='Useful List of SYSIBM tables'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-8906413858054979547</id><published>2012-02-09T12:32:00.000+05:30</published><updated>2012-02-09T13:01:12.689+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JCL"/><title type='text'>GDG - A Basic Introduction</title><summary type="text">






Introduction

GDG stands for Generation Data Group. Here a group of files are related functionally or chronologically and can be accessed individually or as a group. These files share a unique name.
&amp;nbsp;Every dataset in a GDG has a Generation number and version number. Eg.TESTGDG.DATA.G0001.V00
Subsequent files are named by incrementing the Generation number(G0001-G9999).
The current </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/8906413858054979547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/02/gdg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/8906413858054979547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/8906413858054979547'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/02/gdg.html' title='GDG - A Basic Introduction'/><author><name>Shabana</name><uri>http://www.blogger.com/profile/12624242055568175884</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-2108855778796268643</id><published>2012-01-23T17:01:00.002+05:30</published><updated>2012-01-23T17:01:47.820+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Ranking and Numbering for Records in DB2</title><summary type="text">DB2 supports ranking and numbering in much the same way that Oracle does.The available functions are:


ROW_NUMBER(), which simply numbers the returned rows sequentially 

RANK(), which ranks the results, but, in the case of a tie, gives the same number to each and leaves a gap to compensate 

DENSE_RANK() operates the same as RANK() but doesn&#39;t leave any gaps. 

The difference in these three </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/2108855778796268643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/ranking-and-numbering-for-records-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/2108855778796268643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/2108855778796268643'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/ranking-and-numbering-for-records-in.html' title='Ranking and Numbering for Records in DB2'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-5978209174263704202</id><published>2012-01-23T16:58:00.000+05:30</published><updated>2012-01-23T17:11:55.420+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Selecting first few rows in DB2</title><summary type="text">DB2&#39;s method of performing a Top-N query is the FETCH FIRST clause. You can append these variations to a regular SELECT query:


FETCH FIRST ROW ONLY 

FETCH FIRST 1 ROW ONLY 

FETCH FIRST integer ROWS ONLY 

Interestingly, you can also use

FETCH FIRST 1 ROWS ONLY 

FETCH FIRST 5 ROW ONLY 

They aren&#39;t as nice 
grammatically, but they make it easier to generate queries 
automatically—you don&#39;t </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/5978209174263704202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/selecting-first-few-rows-in-db2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5978209174263704202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5978209174263704202'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/selecting-first-few-rows-in-db2.html' title='Selecting first few rows in DB2'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-3106827422609450343</id><published>2012-01-23T15:40:00.001+05:30</published><updated>2012-01-23T15:40:19.893+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="COBOL"/><title type='text'>INSPECT in COBOL</title><summary type="text">The INSPECT verb has two options, TALLYING and REPLACING. You can do 
one or the other or both. If both are done, the TALLYING IS DONE BEFORE 
THE replacing. Some versions of the INSPECT require that all the 
literals be in quotes. This may call for a redefination if the field is 
numeric.

In using the TALLYING format of the INSPECT, you are tallying into a 
field that is a counter. This field </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/3106827422609450343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/inspect-in-cobol.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/3106827422609450343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/3106827422609450343'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/inspect-in-cobol.html' title='INSPECT in COBOL'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-3267879444921448239</id><published>2012-01-23T15:38:00.000+05:30</published><updated>2012-01-23T15:38:05.050+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="COBOL"/><title type='text'>COBOL Numeric Data Types - COMP</title><summary type="text">The following common COBOL data types are discussed below:


Binary
Computational (comp)
Comp-1
Comp-2
Comp-3
Packed Decimal


BINARY

    Specified for binary data items.  Such items have a decimal equivalent
consisting of the decimal digits 0 through 9, plus a sign.  Negative
numbers are represented as the two&#39;s complement of the positive number
with the same absolute value.&amp;nbsp;
The amount of</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/3267879444921448239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/cobol-numeric-data-types-comp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/3267879444921448239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/3267879444921448239'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/cobol-numeric-data-types-comp.html' title='COBOL Numeric Data Types - COMP'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-4644089418536102596</id><published>2012-01-23T11:30:00.000+05:30</published><updated>2012-01-23T11:35:59.119+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ISPF"/><category scheme="http://www.blogger.com/atom/ns#" term="REXX"/><title type='text'>Special Searching</title><summary type="text">&lt;!--[if gte mso 9]&gt;
 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  
&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;
 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/4644089418536102596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/special-searching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4644089418536102596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4644089418536102596'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/special-searching.html' title='Special Searching'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-5639352182968099652</id><published>2012-01-23T11:16:00.000+05:30</published><updated>2012-01-23T11:16:02.086+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JCL"/><title type='text'>TIME=NOLIMIT and TIME=MAXIMUM</title><summary type="text">We can specify the max limit of TIME parameter asTIME=NOLIMIT orTIME=MAXIMUM.Now which specification gives maximum time for a JOB?
TIME=MAXIMUM will allow the job to run for 357912 minutes (248.55 days)
TIME=NOLIMIT will allow the job for unlimited amount of time
Another advantage of NOLIMIT option is that it can remain in wait status for more than the installationtime limit.</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/5639352182968099652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/timenolimit-and-timemaximum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5639352182968099652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5639352182968099652'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/timenolimit-and-timemaximum.html' title='TIME=NOLIMIT and TIME=MAXIMUM'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-3276096789209455965</id><published>2012-01-23T11:12:00.002+05:30</published><updated>2012-01-23T11:13:24.767+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JCL"/><title type='text'>Run a step only from a set of steps in a job</title><summary type="text">I have a JCL with 20 steps. Due to some reasons I want to execute the step 15 only.

One way to do it is to use RESTART from STEP15, but it will try to execute the subsequent steps too. We have to insert null statement after step15 to prevent the execution of subsequent steps.

But one decent way is there in which we don’t need to touch the job steps code, but alter only the Jobcard.

And that is</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/3276096789209455965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/running-particular-job-from-set-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/3276096789209455965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/3276096789209455965'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/running-particular-job-from-set-of.html' title='Run a step only from a set of steps in a job'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-2714679625557515812</id><published>2012-01-23T11:09:00.003+05:30</published><updated>2012-01-23T11:18:00.858+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>DB2 Index with Expressions</title><summary type="text">
Prior to DB2 9, the create index statement only allowed you to use 
the column name from the table the index is being built on. The same 
value for each column stored on the table was copied into the index and 
used to quickly identify the row when searching by that column name. Now
 with DB2 9, the create index statement supports a feature known as key 
expressions. Here&#39;s why key expressions </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/2714679625557515812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/db2-9-index-with-expressions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/2714679625557515812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/2714679625557515812'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/db2-9-index-with-expressions.html' title='DB2 Index with Expressions'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-5230641484036463968</id><published>2012-01-23T11:02:00.003+05:30</published><updated>2012-01-23T11:02:21.823+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JCL"/><title type='text'>Run a Program using Referback</title><summary type="text">It is possible to execute a program from any library using the referback feature.
//STEP1 EXEC PGM=IEFBR14//PROGRAM DD DSN=SYSTEM.PGM.LOADLIB(COBOLPGM),DISP=SHR

.
.
.
.//STEP2 EXEC PGM=*.STEP1.PROGRAM</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/5230641484036463968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/run-program-using-referback.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5230641484036463968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5230641484036463968'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/run-program-using-referback.html' title='Run a Program using Referback'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-7820214437369057287</id><published>2012-01-20T15:46:00.001+05:30</published><updated>2012-01-20T15:46:26.499+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Like the DB2 LIKE</title><summary type="text">
The&amp;nbsp;LIKE&amp;nbsp;phrase defines a mask for comparing characters:
&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE COL_VAL [NOT] LIKE&amp;nbsp;mask

&amp;nbsp;

A mask may be a host variable or a literal enclosed in quotes and may contain any number of:

      
character   literal
      


      
for   an exact match
  
      
underscore   character
      
&amp;nbsp;&amp;nbsp;   _ &amp;nbsp;&amp;nbsp;
      
for   any single character
  
</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/7820214437369057287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/like-db2-like.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/7820214437369057287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/7820214437369057287'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/like-db2-like.html' title='Like the DB2 LIKE'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-4087026685977113963</id><published>2012-01-20T15:43:00.004+05:30</published><updated>2012-01-20T15:43:42.568+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Handling NULL in DB2</title><summary type="text">
The value of an indicator variable tells the status of a row after a query.

01&amp;nbsp; FILLER.

&amp;nbsp;&amp;nbsp;&amp;nbsp; 05&amp;nbsp; WS-AMOUNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIC S9(5)V9(2) COMP-3.&amp;nbsp; Host variables

&amp;nbsp;&amp;nbsp;&amp;nbsp; 05&amp;nbsp; WS-CUSTNUM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIC&amp;nbsp; X(5).




01&amp;nbsp; FILLER.

&amp;nbsp;&amp;nbsp;&amp;nbsp; 05&amp;nbsp; AMT-IND&amp;nbsp;&amp;nbsp;&amp;nbsp;</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/4087026685977113963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/handling-null-in-db2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4087026685977113963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4087026685977113963'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/handling-null-in-db2.html' title='Handling NULL in DB2'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-1382409652120380425</id><published>2012-01-20T15:40:00.001+05:30</published><updated>2012-01-20T15:40:21.264+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><title type='text'>Isolation level in DB2</title><summary type="text">
1.SERIALIZABLE(Repeatable read (RR))

2.REPEATABLE READ(Read stability (RS))

3.READ COMMITTED(Cursor stability (CS)) (default)

4.READ UNCOMMITTED(Uncommitted read (UR))




SERIALIZABLE (DB2 UDB: Repeatable Read)




&amp;nbsp;&amp;nbsp;&amp;nbsp; Locks
 the table within a unit of work. An application can retrieve and 
operate on rows in the table as many times as needed. However, the 
entire table is </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/1382409652120380425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/isolation-level-in-db2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/1382409652120380425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/1382409652120380425'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/isolation-level-in-db2.html' title='Isolation level in DB2'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-5294837779089479180</id><published>2012-01-20T15:38:00.001+05:30</published><updated>2012-01-20T15:38:06.652+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="File-Aid"/><title type='text'>Freezing columns in File-Aid</title><summary type="text">While working in MS Excel we have the option of “freeze Panes”. By this options we can freeze some columns and have other columns scrolling. This feature is helpful in analysis when there are lots of columns(fields) in a file.

In mainframe too, we have similar such facility thru File-Aid.

1.Open the file in File-Aid
2. use VFMT format
3. If you want to freeze columns(fields) 1,2,3, and 6 and </summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/5294837779089479180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/freezing-columns-in-file-aid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5294837779089479180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/5294837779089479180'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/freezing-columns-in-file-aid.html' title='Freezing columns in File-Aid'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-4514630633903861520</id><published>2012-01-20T15:36:00.000+05:30</published><updated>2012-01-20T15:36:11.455+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="File-Aid"/><category scheme="http://www.blogger.com/atom/ns#" term="VSAM"/><title type='text'>VSAM record count using File-Aid</title><summary type="text">Whats the best way to count the number of records in a VSAM File?


Choose FILE-AID Option 3.8.

At the prompt of ....ENTER NEXT FUNCTION OR END , enter TALLY.
You will get the record count.

Type END to exit.
</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/4514630633903861520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/vsam-record-count-using-file-aid.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4514630633903861520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/4514630633903861520'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/vsam-record-count-using-file-aid.html' title='VSAM record count using File-Aid'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-346660000609937290</id><published>2012-01-20T15:32:00.000+05:30</published><updated>2012-01-20T15:32:14.020+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="VSAM"/><title type='text'>Read Only VSM Files</title><summary type="text">By using INHIBIT along with ALTER command, we can have a read-only VSAM dataset.
Example:

//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=*//SYSIN DD *ALTER -SECRET.KSDS.DATA -INHIBITALTER -SECRET.KSDS.INDEX -INHIBIT/*
Notice that the ALTER command is used with DATA and INDEX and not with the cluster.</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/346660000609937290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/read-only-vsm-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/346660000609937290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/346660000609937290'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/read-only-vsm-files.html' title='Read Only VSM Files'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7801780650428221492.post-1875622725253382669</id><published>2012-01-20T15:28:00.006+05:30</published><updated>2012-01-20T15:28:57.745+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JCL"/><category scheme="http://www.blogger.com/atom/ns#" term="VSAM"/><title type='text'>Dummy VSM Dataset in JCL</title><summary type="text">In general we use DUMMY datasets in JCL instead of a actual file for some requirements.
 
But how can we specify dummy VSAM dataset in a JCL?

The parameter AMP=’AMORG’ tells the OS to treat the file as VSAM file.

//NOVSAMIO DD DUMMY,AMP=’AMORG’</summary><link rel='replies' type='application/atom+xml' href='http://mainframe-coders.blogspot.com/feeds/1875622725253382669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/dummy-vsm-dataset-in-jcl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/1875622725253382669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7801780650428221492/posts/default/1875622725253382669'/><link rel='alternate' type='text/html' href='http://mainframe-coders.blogspot.com/2012/01/dummy-vsm-dataset-in-jcl.html' title='Dummy VSM Dataset in JCL'/><author><name>Purusothaman R</name><uri>http://www.blogger.com/profile/17471876878899882101</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGN5zEqGCWME7ElR-w02oDEgbwZdzO4puPGYTgZZ3MUgtIqViPGvuoRmqFez-s0N0U7TAkFWoJrcs7MfhT6B-IEC2lmaElD0Tt0tQ89mL2-D_xDmztnGtkCiY49gnOKyg/s220/Purus1.jpg'/></author><thr:total>0</thr:total></entry></feed>