Search found 64 matches

by Chandan Yadav
Wed Mar 09, 2016 11:33 am
Forum: Scheduling Software for MVS, OS/390 and zOS
Topic: Can we sort "executing jobs " in spool classwise?
Replies: 8
Views: 4260

Re: Can we sort "executing jobs " in spool classwise?

Thanks Enrico ..

Code: Select all

SORT C
will sort the SDSF on class sname

Thanks,
Chandan
by Chandan Yadav
Wed Mar 09, 2016 11:30 am
Forum: IBM DB2 and IMS DB/DC
Topic: Can we execute SQLs using JCL.
Replies: 6
Views: 971

Re: Can we execute SQLs using JCL.

One more example with DSNTEP2 if you want the query output in sysout Thanks, Chandan //SQL  EXEC PGM=IKJEFT1A,DYNAMNBR=20 //SYSTSPRT DD  SYSOUT=* //SYSTSIN  DD  *       DSN SYSTEM(<DB2SUBSYSTEM>)       RUN  PROGRAM(DSNTEP2) PLAN(DSNTEP2) -             LIB('DSN710.RUNLIB.LOAD') //SYSPRINT DD SYSOUT=*...
by Chandan Yadav
Mon Feb 22, 2016 10:06 am
Forum: Suggestions & Feedback : About the website.
Topic: About the Forum.
Replies: 12
Views: 4997

Re: About the Forum.

A great effort by you Anuj..Hats off..This forum really encouraging and powerful medium to get to know legends in mainframe and enhance the knowledge.. Great knowledge base for every level programmer starting for beginner to experts..Continue the great work and never hesitate to ask for any assistan...
by Chandan Yadav
Thu Jan 21, 2016 10:29 am
Forum: IBM DB2 and IMS DB/DC
Topic: DB2 query to check the low values.
Replies: 2
Views: 2101

Re: DB2 query to check the low values.

Hi,

Try this

Code: Select all

SELECT TNAME
  FROM STATUSTABLE
WHERE LOCATE(X'00',TSTATUS) > 1
This is untested but should work.

Thanks and regards,
Chandan
by Chandan Yadav
Tue Dec 22, 2015 1:57 pm
Forum: Interview Questions.
Topic: Find the number of records fetched in a cursor.
Replies: 9
Views: 1794

Re: Find the number of records fetched in a cursor.

I doubt SQLERRD(3) will give the count no of rows selected by a cursor before hand. As far as selecting rows concerned, SQLERRD(3) (3) gives the count of rows selected in a multi-fetch/rowset Oriented cursor for a single fetch operation. I don't think there is any field in SQLCA which will give the ...
by Chandan Yadav
Mon Dec 21, 2015 2:08 pm
Forum: IBM DB2 and IMS DB/DC
Topic: Can we auto generate key values in DB2?
Replies: 9
Views: 1409

Re: Can we auto generate key values in DB2?

Thanks for the detailed information Anuj..
by Chandan Yadav
Mon Dec 21, 2015 2:05 pm
Forum: Interview Questions.
Topic: Get the first 5 characters of a column in DB2?
Replies: 3
Views: 502

Re: Get the first 5 characters of a column in DB2?

Hi,

Check for SUBSTR function of Db2

Regards,
Chandan
by Chandan Yadav
Thu Dec 17, 2015 3:34 pm
Forum: IBM DB2 and IMS DB/DC
Topic: Can we auto generate key values in DB2?
Replies: 9
Views: 1409

Re: Can we auto generate key values in DB2?

Nicely put Anuj.. Just addition to IDENTITY columns, you cam mention one more parameter INCREMENT BY. The values advance by the INCREMENT BY value in ascending or descending order for each key. Correct me if I am wrong. As per manual A row ID is a value that uniquely identifies a row in a table. A c...
by Chandan Yadav
Thu Dec 17, 2015 10:43 am
Forum: IBM DB2 and IMS DB/DC
Topic: Can we auto generate key values in DB2?
Replies: 9
Views: 1409

Re: Can we auto generate key values in DB2?

Hi,

Check for IDENTITY COLUMNS in DB2.. you will find ample info on google for this

Regards,
Chandan
by Chandan Yadav
Wed Nov 18, 2015 11:34 am
Forum: Interview Questions.
Topic: JCL interview question on Job card.
Replies: 7
Views: 968

Re: JCL interview question on Job card.

yes we can have a line before Job card. I have seen JCL's where GLobal variables for COntrol-M processing mentioned before Job card
by Chandan Yadav
Wed Nov 18, 2015 11:33 am
Forum: Interview Questions.
Topic: Way to know if CICS region is up or down?
Replies: 3
Views: 810

Re: Way to know if CICS region is up or down?

You can just try to login in that CICS region to check if its up or not
by Chandan Yadav
Tue May 26, 2015 9:50 am
Forum: Thought of the Day, General Talk & Jokes.
Topic: Technical skills apart from Mainframe
Replies: 6
Views: 653

Re: Technical skills apart from Mainframe

I have started getting knowledge on Big Data, Hadoop and core java concepts.
by Chandan Yadav
Fri Feb 20, 2015 9:05 am
Forum: Thought of the Day, General Talk & Jokes.
Topic: India vs. Pakistan Today - WC!
Replies: 9
Views: 743

Re: India vs. Pakistan Today - WC!

My vote is with New Zealand..but yes biased towards India too..though India chances are very little :)
by Chandan Yadav
Mon Dec 22, 2014 6:55 pm
Forum: JCL - Job Control Language.
Topic: More than one condition in COND in JCL.
Replies: 3
Views: 4285

Re: More than one condition in COND in JCL.

Hi, I would say to check with basics of COND parameter. Step will be bypassed if any of the conditions becomes true. As per the manual Use the COND parameter to test return codes from previous job steps and determine whether to bypass this job step. You can specify one or more tests on the COND para...
by Chandan Yadav
Thu Dec 18, 2014 2:34 pm
Forum: Interview Questions.
Topic: Mass delete using cursors in COBOL DB2 program.
Replies: 8
Views: 1694

Re: Mass delete using cursors in COBOL DB2 program.

I guess as it was an Interview question, Mohit also might not be aware what Interviewer was expecting.

But yes we can answer using rowset as an option if such question comes in future 8-) ;)
by Chandan Yadav
Thu Dec 18, 2014 8:46 am
Forum: Interview Questions.
Topic: Mass delete using cursors in COBOL DB2 program.
Replies: 8
Views: 1694

Re: Mass delete using cursors in COBOL DB2 program.

Hi Mohit, I am not sure what you meant by mass delete, is it deleting all rows in one go which satisfy criteria of WHERE clause of DECLARE statement or deleting multiple rows using cursor? If you are using Cursor with rowset positioning you can delete multiple rows with one WHERE CURRENT OF executio...
by Chandan Yadav
Wed Dec 10, 2014 8:48 am
Forum: IBM DB2 and IMS DB/DC
Topic: How to determine Unique Index column name for a DB2 table?
Replies: 4
Views: 1964

Re: How to determine Unique Index column name for a DB2 tabl

Hi Rakhee, Please use below query to find unique index of a table SELECT NAME,COLNAME FROM SYSIBM.SYSINDEXES,SYSIBM.SYSKEYS WHERE TBNAME='table name' AND TBCREATOR='creator' AND UNIQUERULE ='U' AND NAME= IXNAME AND IXCREATOR=CREATOR Regards, Chandan
by Chandan Yadav
Thu Nov 27, 2014 8:57 am
Forum: IBM DB2 and IMS DB/DC
Topic: SOUNDEX function in DB2.
Replies: 16
Views: 1763

Re: SOUNDEX function in DB2.

All this I plan to do with just a JCL/DB2 and without writing a cobol program. What do you suggest? I am just wondering how you will do this only with JCL/DB2 and no cobol. You will need to write a program to read file and all other processing? Also for getting different fieldsof the address field ...
by Chandan Yadav
Tue Oct 14, 2014 5:06 pm
Forum: JCL - Job Control Language.
Topic: COND Parmeter in JCL.
Replies: 5
Views: 897

Re: COND Parmeter in JCL.

Hi Abhijit,

COND=(0,LT) will always execute the step on which it is coded as the condition will be always false whereas COND=(0,EQ) will bypass the step if previous steps executed with return code 0.

Regards,
Chandan
by Chandan Yadav
Tue Oct 14, 2014 4:55 pm
Forum: Interview Questions.
Topic: Is it possible to execute 6 to 8 steps among 10 steps?
Replies: 8
Views: 974

Re: Is it possible to execute 6 to 8 steps among 10 steps?

yes I agree with both Enrico and Anuj :)

Go to advanced search