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


Please Help Members By Posting Answers For Below Questions

What is job control language?

605


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

1927


Explain dd statement in jcl?

638


How to pass data to a program that is coded in an exec statement?

818


how you can access an uncataloged dataset in a JCL?

649






How can unused space allocation be returned to the system when a dataset is closed?

804


Explain in DD statement what is the use of DCB parameter?

652


can any one plzzzzzz tell the jcl code for creating ps using idcams

10501


How can a fb file convert to vb file using sort program?

802


what sort card you will use to copy the data from one dataset to another dataset?

722


What do you understand by the term job time – out and how can you overcome that?

595


What is the significance of addrspc parameter in the exec statement?

616


Explain the function of dd disp parameter?

593


What are steplib and joblib? What for they are used?

687


List the various advantages of using jcl language?

848