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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / amy
TRY OUT SORT UTILITY---
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT.FROM.UNIX
//SORTOUT DD DSN=OUTPUT.AT.MAINFRM.
//SORTWRK DD ------
//SYSIN DD *
SORT FIELDS=COPY
INREC FIELDS=(1:10,71)
/*
//* ASSUMING LRECL=80.OTHERWISE CHANGE 71 TO (LRECL-9)
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / aiswarya
Sort the file Using syncsort and skip the first 9
characeters using SKIPREC
//SYSIN DD *
SORT FILEDS=COPY
SKIPREC=N
| Is This Answer Correct ? | 0 Yes | 4 No |
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
How to identify where file is empty or not? How many ways are there to identifying?
What are the common jcl syntax errors you get? This is not abends?
Explain how can values be passed from the job stream to an executable program?
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
How do you access an uncatalogued dataset in a jcl?
mainframe questions like basic&depth
What do you understand by jcl?
restart logic ?
delete rules in db2
What does the TIME parameter signify ? What does TIME=1440 mean ?
One of My Job is running in production, which contains five steps?i want to pass the input to FIFTH step while running is it possible? if how?