View previous topic :: View next topic
|
Author |
Message |
Digvijay Singh
New User
Joined: 20 Apr 2022 Posts: 94 Location: India
|
|
|
|
Hi all ,
I have a file which conatains the return code of the job, I mean i have captured the return code of some job and now my requirement is basis on the return code available in the file i want to create one PS file something like below:
IF RC=00 in file i want create one ps success file with RC==0 and if RC Not equal to 00 i want to create one error file with RC copied into it.
sample file:
Code: |
[code]
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
VIEW QSYS.SORT.RC.CODE Columns 00001
Command ===> Scroll ===>
****** ***************************** Top of Data ************************
000001 RC=0012
000002 [/code] |
|
|
Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1023 Location: Bamberg, Germany
|
|
|
|
What have you tried yourself to achieve this?
Learn to specify correctly what you want. You wrote RC=00 while your sample shows RC=nnnn and so on. What happens if you get an ABEND code?
PS: z/OS knows mainly Datasets, not Files. |
|
Back to top |
|
 |
Digvijay Singh
New User
Joined: 20 Apr 2022 Posts: 94 Location: India
|
|
|
|
okay Thanks for reply.
Let me phrase this again:
INPUT DATA CONATAINS RETURN CODE IN FORAMATE RC=NNNN
It could be either RC=0000 or other than 0000. basis on RC in input data set I have to create one success file or failure file. IF RC=0000 create ABC.DIGGI.SUCSESS.FILE BUT IF RC NE 0000 create one FAILIURE FILE SAY ABC.DIGGI.FAIL.FILE.
hope i am clear now.
I am thinking how i can achieve it, yes i haven't tried anything yet still just figuring out what sort i can use. if you have any suggestion or even small hint will take it form there. |
|
Back to top |
|
 |
Digvijay Singh
New User
Joined: 20 Apr 2022 Posts: 94 Location: India
|
|
|
|
i can achieve this using INCLUDE condition .
Thank you |
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 1751
|
|
|
|
You continue stepping the same way which everyone suggested you not to follow in several of your previous topics.
While doing simple things in an extremely complicated manner you just multiply the existing amount of garbage already created in the software world, and also you guarantee that the life of your future followers to become a nightmare. |
|
Back to top |
|
 |
|