I have a file containing lot of fields. The first field is fixed set of say 10 characters. My requirement is out of the 10 characters the first 5 should be always numeric.
Incase they are not number, I should be able to write those lines to a different file.
Eg:
12345iam
6789#how
89012wha
12345678
hi123how
Here the 2nd & 5th rows are invalid as the first 5 should be numeric. Hence want this to be written into a different file.
Joined: 15 Aug 2015 Posts: 1307 Location: Bamberg, Germany
You can request what you want. Show us what you have tried so far and you may get an answer. Beside that I can't see what it has to do with JCL or VSAM.
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
Put it this way:
1 - I suspect, but do not know, that you are wanting a sort solution but you a) failed to mention this and b) did not post in either sort section of the forum
2 - If you want it quick then do not post on a forum - the people responding do so in their spare time. Their time may be precious so you should present your query fully and clearly and accurately
3 - data and code should be presented using the code tags - you can figure out for yourself how to do this if you use the POST REPLY button and/or read form posts telling you how to do this
4 - zOS data is kept in data sets - hence DSN for Data Set Name - not files. In zOS a file is the stream of data from a data set or device (such as a modem) to your program
5 - Welcome to the Expert Forum. If you are inexperienced then the sister forum - Beginners Forum - would be a more appropriate place to post your questions.
6 - Links to manuals can be found at the very top of each page or you can Google for them.
1. It should be moved to DFSORT/ SYNCSORT based on the product TS uses.
2.It could be FS or ZD, TS would need to decide that, I assumed FS since it was not provided.
3. I just gave an idea and not the complete solution since TS is expected to do that at the least.