I am getting the file from Unix to Mainframes for every 15
minutes. The mainframe job get abended with bad records
coming from unix. I recovered that by deleting the bad data.
I need permenant solution how to fix the issue? The record
is getting characters in in first 9 positions which it
should not.
Please provide me the solution how to skip the records if
it finds the charcters in the first 9 positions.
K

Answer Posted / krish

Its having bad data in first 9 positions..
use sort omit condition to reject those records

OMIT COND = (STRATPOS,LENGTH,TYPE,REL OPERT,VALUE)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1937


whats the diff bw the evaluate also and and?

1870


When output dataset space is required, what quantity categories are used?

845


What is the function of //jcllib statement?

817


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7100






Explain how can a jobs execution priority be modified?

751


Explain the function of dd name parameter with a 2 part structure; audit.report?

910


what is use of dcb parameter in dd statement?

789


how you will the direct the data to spool using sysout option?

1775


how do you access an uncataloged dataset in a jcl?

877


What is NOTCAT ?

757


Is their any limit for data sets?

719


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1960


How can the attributes of one sms dataset be copied to another dataset?

871


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1969