Search found 64 matches

by Chandan Yadav
Wed Oct 31, 2018 1:46 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: omit 2 days old data from current date in Sort.
Replies: 3
Views: 1604

Re: omit 2 days old data from current date in Sort.

If you are doing a table unload , why can't you exclude the records during unload itself by tweaking the DB2 query to select only last 2 days data?
by Chandan Yadav
Thu Jun 01, 2017 1:50 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Adding the counts of duplicates while keeping the duplicate.
Replies: 3
Views: 1325

Re: Adding the counts of duplicates while keeping the duplicate.

Atul Bhosale wrote: Have your output of SUM FIELDS, means what do I do?
What Z programmer mean to say is execute two steps
1. Do the sum fields and get the output as you have mentioned
2. Use join keys to join your input file and o/p from step1, get the desired result

Thanks,
Chandan
by Chandan Yadav
Thu Dec 08, 2016 2:32 pm
Forum: Introduce Yourself and Share Your IT Experience.
Topic: Robert Sample.
Replies: 6
Views: 4260

Re: Robert Sample.

Totally Agree with Anuj.. Having Robert Sample on this forum is big big asset for forum. I am seeing Robert's pots on various forum for quite some time and feels my self lucky to have interaction ( not one to one but through posts) with this great person. Much appreciate your time for spreading your...
by Chandan Yadav
Tue Dec 06, 2016 6:05 pm
Forum: Introduce Yourself and Share Your IT Experience.
Topic: vasanthz
Replies: 4
Views: 661

Re: vasanthz

Welcome Vasanth.. Nice to see you here..
by Chandan Yadav
Tue Nov 08, 2016 11:20 am
Forum: IBM DB2 and IMS DB/DC
Topic: Updating Cursor row withour using FOR UPDATE
Replies: 1
Views: 2166

Updating Cursor row withour using FOR UPDATE

Hi All, My cursor query is as below EXEC SQL DECLARE CUR2 CURSOR FOR SELECT COL1, COL2 FROM TABLE1 WHERE COL3 = 'ABC' END-EXEC. For table has only 1 row satisfying above criteria with COL1 = 'XYZ' Below are the steps I am following 1. Open the cursor 2. Fetch the cursor which will eventually give on...
by Chandan Yadav
Wed Oct 26, 2016 4:11 pm
Forum: Interview Questions.
Topic: Call COBOL-DB2 program from pure COBOL program?
Replies: 12
Views: 3205

Re: Call COBOL-DB2 program from pure COBOL program?

Nice to see you here Arun..
by Chandan Yadav
Tue Oct 04, 2016 9:34 am
Forum: Interview Questions.
Topic: Handling SQLCODE -811.
Replies: 3
Views: 671

Re: Handling SQLCODE -811.

It should not happen. Can you please post your SQL and cursor declaration where you are getting -811

Thanks,
Chandan
by Chandan Yadav
Wed Sep 21, 2016 1:38 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Keep the SORT order in output as input while removing the duplicates.
Replies: 2
Views: 845

Re: Keep the SORT order in output as input while removing the duplicates.

I can think of a two step solution here 1. Remove the duplicates using your key and in INREC add the sequence number at the end and create output file with sequence number 2. Sort the output file from step 1 on sequence number and write the outpur file. Remove the sequence number in OUTREC Thanks, C...
by Chandan Yadav
Sun Sep 11, 2016 1:28 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Pick the latest record using SORT.
Replies: 3
Views: 472

Re: Pick the latest record using SORT.

Ok..Thanks Mangesh..

[ Post made via Android ] Image
by Chandan Yadav
Sat Sep 10, 2016 6:38 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Pick the latest record using SORT.
Replies: 3
Views: 472

Re: Pick the latest record using SORT.

Yes..it can be done using sort.. You need to group the records on each key in INREC and assign sequence number for each group.. Sort the records using your key and sequence number descending to get the latest record first then eliminate the duplicates in next step I don't have access to system now s...
by Chandan Yadav
Wed Sep 07, 2016 11:17 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Merge records from two file, one by one.
Replies: 14
Views: 1172

Re: Merge records from two file, one by one.

You might have missed first BEGIN record in your testing, but still if you have a solution without having first begin statement, then you are good. Regards, Magesh Yup you are correct..my bad..I overlooked the first begin statement [ Post made via Android ] http://zmainframes.com/ext/sniper/mobiled...
by Chandan Yadav
Wed Sep 07, 2016 5:03 pm
Forum: Interview Questions.
Topic: When the DCLGEN variable are used?
Replies: 5
Views: 831

Re: When the DCLGEN variable are used?

All the copy books mentioned with INCLUDE taken into consideration during per-compilation and all the copy books mentioned with COPY are taken into consideration during compilation
by Chandan Yadav
Wed Sep 07, 2016 2:10 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Merge records from two file, one by one.
Replies: 14
Views: 1172

Re: Merge records from two file, one by one.

10701 Imran Lamba, Assuming LRECL=80. //SORT010 EXEC PGM=SORT //SORTIN DD * BEGIN // DD DSN=FIRST.FIL,DISP=SHR // DD * BEGIN // DD DSN=SECOND.FIL,DISP=SHR //SORTOUT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSIN DD * INREC IFTHEN=(WHEN=GROUP,BEGIN=(1,5,CH,EQ,C'BEGIN'), PUSH=(81:SEQ=8)) SORT FIELDS=(81,8,...
by Chandan Yadav
Mon Aug 22, 2016 10:21 pm
Forum: Interview Questions.
Topic: Execute a specific step in a JCL.
Replies: 14
Views: 2579

Re: Execute a specific step in a JCL.

10543 COND=(0,LE) is like, if the RC of the previous step is less than 0 don't execute "step13", which is not possible. So agree step13 would execute but rest of the steps will also execute. I was not supposed to execute step15, step15... As Robert mentioned When I mention COND on JOB par...
by Chandan Yadav
Mon Aug 22, 2016 9:38 am
Forum: Introduce Yourself and Share Your IT Experience.
Topic: Rohit Umarjikar-Introduction :-)
Replies: 4
Views: 595

Re: Rohit Umarjikar-Introduction :-)

Welcome Rohit and Nice to see you here..you will find quite familiar names here :)

You had a good exposure and surely it will be a help to people here

Thanks,
Chandan
by Chandan Yadav
Fri Aug 19, 2016 5:51 pm
Forum: Interview Questions.
Topic: Execute a specific step in a JCL.
Replies: 14
Views: 2579

Re: Execute a specific step in a JCL.

Shaifali Kapoor wrote: thanks for the other option Chandan. But if add only this steps after 13 will anyways get executed?
Once your step 13 executed with Restart parameter then COND parameter on JOb card will be applicable to all other steps and (0,LE) will be always true
by Chandan Yadav
Wed Aug 17, 2016 11:39 pm
Forum: Interview Questions.
Topic: Execute a specific step in a JCL.
Replies: 14
Views: 2579

Re: Execute a specific step in a JCL.

Hi,

Just adding one more way to Akatsukami..
Code

Code: Select all

Restart =STEP13,COND=(0,LE)  
on Job card
by Chandan Yadav
Wed Jul 27, 2016 11:46 am
Forum: Interview Questions.
Topic: Code a step in a JCL so that it actually never executes.
Replies: 4
Views: 801

Re: Code a step in a JCL so that it actually never executes.

Having COND=(0,LE) on corresponding step will suffice for bypassing the step

Thanks and regards,
Chandan

Go to advanced search