Author |
Message |
Topic: Using FINDREP, limit to a field |
callanand
Replies: 4
Views: 4687
|
Forum: Utilities Posted: Tue Jun 09, 2009 10:54 am Subject: Using FINDREP, limit to a field |
mickeygoo,
Use this
//STEP05 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD *
Black & Decker Hello World!!!
Spic & Span CleanrsHow U Doin?!
//DD01O DD SYSOUT= ... |
Topic: To identify duplicate records in a file |
callanand
Replies: 4
Views: 12493
|
Forum: Utilities Posted: Thu Jun 04, 2009 8:46 am Subject: To identify duplicate records in a file |
kanitha-mvs,
You can use the below JCL to get the desired result. However there are many examples of dealing with duplicates in this forum.
//STEP01 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
... |
Topic: logic of DO-WHILE |
callanand
Replies: 9
Views: 5984
|
Forum: Application Programming Posted: Wed Jun 03, 2009 3:47 am Subject: logic of DO-WHILE |
apiyan,
use if MATCHED feature of eazytrieve if the first input file has no duplicate on keys. Otherwise store the second file in an internal table(array). The read the first file and search the reco ... |
Topic: EZT - Without using IF MATCHED condition |
callanand
Replies: 6
Views: 5714
|
Forum: Application Programming Posted: Fri May 29, 2009 6:20 am Subject: EZT - Without using IF MATCHED condition |
rkarthik,
send me a sample input file and expected output file data. As far as I can understand from the above you can achieve your result by having the below modified code in else part
IF INPFI ... |
Topic: EZT - Without using IF MATCHED condition |
callanand
Replies: 6
Views: 5714
|
Forum: Application Programming Posted: Wed May 27, 2009 6:43 am Subject: EZT - Without using IF MATCHED condition |
Hi Rkarthik,
Why dont you want to use MATCHED feature of easytrieve. It will make the above code much easier. Here is the code that you can use
FILE INPFIL1 FB (313 27857)
EMP-NO-INP1 ... |
Topic: Merging of files of different record lengths |
callanand
Replies: 3
Views: 6846
|
Forum: Utilities Posted: Fri Mar 06, 2009 4:57 am Subject: Merging of files of different record lengths |
Kalidsav.
In sorting concatenate as follows
//SORTIN DD DSN=300 FB FILE,DISP=SHR
DD DSN=200 FB FILE,DISP=SHR
//SORTOUT DD DSN=300 NEW FB OUTPUT FILE,DISP=OLD
//S ... |
Topic: How to open a mainframe csv dataset in an excel format ? |
callanand
Replies: 6
Views: 3484
|
Forum: Application Programming Posted: Tue Feb 03, 2009 11:26 am Subject: How to open a mainframe csv dataset in an excel format ? |
Thanks Kolusu, We are using MS2003 so was not aware of 2007 features. I would say that the removal of size limitation in 2007 would be a great relief as I myself have to send big files in xcel format ... |
Topic: How to open a mainframe csv dataset in an excel format ? |
callanand
Replies: 6
Views: 3484
|
Forum: Application Programming Posted: Mon Feb 02, 2009 7:28 am Subject: How to open a mainframe csv dataset in an excel format ? |
How many records are there in the file. Xcel file has the restriction of 65536 rows. |
Topic: an idea to search 7 files one after another. |
callanand
Replies: 6
Views: 2412
|
Forum: Utilities Posted: Mon Jan 05, 2009 10:11 am Subject: an idea to search 7 files one after another. |
MF,
Try this Sort jcl
//STEP04 EXEC PGM=ICETOOL
//IN1 DD DSN=Input dataset1,DISP=SHR
//IN2 DD DSN=Input dataset2,DISP=SHR
//IN3 DD DSN=Input dataset3,DISP=SHR
//OUT1 ... |
Topic: Copy alternate records & format the output file |
callanand
Replies: 6
Views: 2756
|
Forum: Utilities Posted: Wed Nov 19, 2008 9:53 am Subject: Copy alternate records & format the output file |
Hi Siva,
I guess your input and output file is a VB file. In this case the SORT becomes a bit different. Use
OPTION VLSHRT
as your first statement in SYSIN. Then code the usual copy and include s ... |
Topic: Copy alternate records & format the output file |
callanand
Replies: 6
Views: 2756
|
Forum: Utilities Posted: Tue Nov 18, 2008 7:31 am Subject: Copy alternate records & format the output file |
Here is the exact code. Assuming data starts at column 1
//STEP05 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
0NONVSAM ------- UUS0002.PCCOM.COMAT.US0002.DDF28.D080101
IN-CAT - ... |
Topic: Copy alternate records & format the output file |
callanand
Replies: 6
Views: 2756
|
Forum: Utilities Posted: Tue Nov 18, 2008 7:24 am Subject: Copy alternate records & format the output file |
Hi Siva,
Use the sort card as below(UNTESTED)
SORT FIELDS=(52,6,ZD,D) Assuming your date startes at col 52
OMIT COND=(7,5,CH,EQ,C'IN-CAT')
OUTREC FILEDS=(19,30) Assuming your dataset UUSS002 ... |
Topic: easytrieve compare |
callanand
Replies: 2
Views: 2838
|
Forum: Application Programming Posted: Mon Nov 17, 2008 9:36 am Subject: easytrieve compare |
nbdtrjk1,
I think matching in Easytrieve works like this.
You read the first record of your Filein2. Based on that first record you start reading the records of filein1 till the key of filein2 &l ... |
Topic: Is it possible to pass numerics via SYSIN to COBOL's ACCEPT? |
callanand
Replies: 11
Views: 5722
|
Forum: Job Control Language(JCL) Posted: Thu Oct 30, 2008 10:53 am Subject: Is it possible to pass numerics via SYSIN to COBOL's ACCEPT? |
I too would wonder why 3 ACCEPT is required. If there are 3 numerics to be picked up from SYSIn then define a working storage like this
ws-sysin.
ws-num1 pic x(80).
ws-num2 pic x(80).
... |
Topic: Sysout missing from the Job log |
callanand
Replies: 8
Views: 6460
|
Forum: Application Programming Posted: Tue Oct 28, 2008 10:25 am Subject: Sysout missing from the Job log |
Geetha001,
Are you picking up the load from the correct load library. See the proclib from where you are picking the test program if it is having the test load library mentioned or not. |
|