MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 74 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: how to find out all nullable columns in a DB2 table ?
sriramla

Replies: 2
Views: 2522

PostForum: Database   Posted: Tue Mar 31, 2009 4:08 am   Subject: how to find out all nullable columns in a DB2 table ?
I believe sysibm.syscolumns table has this information. Look at the column named "NULLS". If it is "Y" then the column is nullable; otherwise not.
  Topic: Random number genaration
sriramla

Replies: 5
Views: 8472

PostForum: Application Programming   Posted: Tue Dec 23, 2008 3:25 pm   Subject: Random number genaration
I used the below approach once for a similar problem:

Lets say you want to generate 25 random numbers (from 101 to 125). Declare an array of size 25 and value each element from 101 to 125. Now all ...
  Topic: Negative base with fractional Exponents
sriramla

Replies: 7
Views: 6091

PostForum: Application Programming   Posted: Thu Oct 23, 2008 10:51 am   Subject: Negative base with fractional Exponents
As you know, (-5)**1 gives you a negative number as the result. But (-5)**2 gives you a positive number. In general, negative number raised to the power of odd number will give a negative number as t ...
  Topic: SORT Utility to save excluded records to a different dataset
sriramla

Replies: 24
Views: 9618

PostForum: Utilities   Posted: Tue Jun 10, 2008 3:15 pm   Subject: SORT Utility to save excluded records to a different dataset
Craig, while I understand your comment about changing the original program I could see some reason as why the original program should not be changed - one of the reasons could be that its a common pro ...
  Topic: How to pass a current date
sriramla

Replies: 9
Views: 8292

PostForum: Job Control Language(JCL)   Posted: Thu Dec 13, 2007 10:02 am   Subject: How to pass a current date
Mouli,

I feel you can get the current date inside the pgm itself than resorting to tougher methods.


Vivek, One good point in passing the date thru parm instead of getting in the program is ...
  Topic: How to pass a current date
sriramla

Replies: 9
Views: 8292

PostForum: Job Control Language(JCL)   Posted: Wed Dec 12, 2007 9:57 am   Subject: How to pass a current date
Your job scheduler will have variables that gives the current day,month, year etc. Consult the manual to get those variables and pass them in the PARM.
  Topic: Calling CICS-BMS Maps from the Browser
sriramla

Replies: 4
Views: 3078

PostForum: CICS and Middleware   Posted: Tue Dec 11, 2007 10:22 am   Subject: Calling CICS-BMS Maps from the Browser
IBM HATS (Host Access Transformation Solution, I think) can display CICS maps in web browser. You can search about this HATS in IBM website (www.ibm.com) for more information.
  Topic: Data from XML format to ASCII format
sriramla

Replies: 4
Views: 2808

PostForum: Application Programming   Posted: Wed Nov 07, 2007 2:00 pm   Subject: Data from XML format to ASCII format
Have you seen the XML PARSE command of COBOL? I guess thats what you are looking for when you say "process the XML data file thru COBOL code".
  Topic: Data from XML format to ASCII format
sriramla

Replies: 4
Views: 2808

PostForum: Application Programming   Posted: Thu Nov 01, 2007 11:55 am   Subject: Data from XML format to ASCII format
To make it clear, the "XML format" as mentioned in your post is nothing but a text file having data surrounded by XML tags. Its not a different 'format' like ASCII or EBCDIC. You can open th ...
  Topic: XML generate- any known issues
sriramla

Replies: 3
Views: 2117

PostForum: Application Programming   Posted: Mon Oct 29, 2007 9:17 am   Subject: XML generate- any known issues
Never used XML GENERATE from COBOL. But we had as similar requirement to generate XML files from a flat file. We used XMLGEN from Fileaid and used the data file and a layout file as inputs to generate ...
  Topic: Dynamic IN Clause in sql
sriramla

Replies: 4
Views: 2217

PostForum: Database   Posted: Wed Oct 10, 2007 9:22 am   Subject: Dynamic IN Clause in sql
You can try the following couple of suggestions:

1. If the IN clause values are always going to be sequential as given in your example (IPC1 thru IPC3 or IPC1 thru IPC5) then replace the IN clause ...
  Topic: how to concatenate two rows in single row?
sriramla

Replies: 4
Views: 2717

PostForum: Database   Posted: Thu Sep 13, 2007 2:16 pm   Subject: how to concatenate two rows in single row?
Viswanathan, your query would result in duplicates. If there are 2 rows with same id, the poster want to combine them into a single row. But the join you have would give 4 rows (2 * 2).
  Topic: TRIM in COBOL
sriramla

Replies: 13
Views: 8664

PostForum: Application Programming   Posted: Fri Sep 07, 2007 10:00 am   Subject: TRIM in COBOL
For trailing spaces, use FUNCTION REVERSE with INSPECT LEADING.
  Topic: TRIM in COBOL
sriramla

Replies: 13
Views: 8664

PostForum: Application Programming   Posted: Thu Sep 06, 2007 10:48 am   Subject: TRIM in COBOL
You may want to do this:

1. Use INSPECT command with TALLYING FOR LEADING / TRAILING SPACES option to get the starting and ending positions of your actual input. For example if your input is coming ...
  Topic: Performance tuning using Stored proc - CICS trans is slow
sriramla

Replies: 4
Views: 2468

PostForum: Database   Posted: Thu Aug 30, 2007 1:39 pm   Subject: Performance tuning using Stored proc - CICS trans is slow
Dynamic SQL's are usually cached by the database to optimize the performance. When the same query is executed many times the access path that is already determined wil be reused. Note that DB2 just ne ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group