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 / 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 |
Post New Answer View All Answers
What is job control language?
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
Explain dd statement in jcl?
How to pass data to a program that is coded in an exec statement?
how you can access an uncataloged dataset in a JCL?
How can unused space allocation be returned to the system when a dataset is closed?
Explain in DD statement what is the use of DCB parameter?
can any one plzzzzzz tell the jcl code for creating ps using idcams
How can a fb file convert to vb file using sort program?
what sort card you will use to copy the data from one dataset to another dataset?
What do you understand by the term job time – out and how can you overcome that?
What is the significance of addrspc parameter in the exec statement?
Explain the function of dd disp parameter?
What are steplib and joblib? What for they are used?
List the various advantages of using jcl language?