understanding Rountine
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
understanding Rountine
All,
What this below routine will do?
what is the purppose of this routine?
RoutineName: InputFileList
Argument Name: FileName
*Ans = ""
DFILE = TRIM(FileName)
OPENSEQ DFILE TO F.DFILE THEN
READSEQ REC FROM F.DFILE ELSE NULL
Ans1 = REC
Ans = 0
RETURN(Ans1)
END ELSE
* Could not open the file. It may not exist. Return empty string
END
i saw this routine is being used in a sequencer job.
in the value expression,
FileDirectory : AsOfDate : ".df_excp.lst"
what it means?
What this below routine will do?
what is the purppose of this routine?
RoutineName: InputFileList
Argument Name: FileName
*Ans = ""
DFILE = TRIM(FileName)
OPENSEQ DFILE TO F.DFILE THEN
READSEQ REC FROM F.DFILE ELSE NULL
Ans1 = REC
Ans = 0
RETURN(Ans1)
END ELSE
* Could not open the file. It may not exist. Return empty string
END
i saw this routine is being used in a sequencer job.
in the value expression,
FileDirectory : AsOfDate : ".df_excp.lst"
what it means?
Karthik
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
Where did Arul come from?karthi_gana wrote:Arul, can you help me to write this loop ?ArndW wrote:You should write a loop in a job sequence to expand that wildcard and call the routine within the loop. ...
You need an executeCommand stage to get list of files in the pattern. Also loop stages to control the flow.
Try it and ask when you hit any problem.
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
Karthik,
could you explain for us at a high level what you want to do; perhaps there is a better approach to use. I, for one, don't understand your wishes and therefore gave up on adding to the thread. You have a routine that processes one file and returns one value. Then you asked about multiple files - but with no idea of what you are trying to achieve there is nobody here who can assist.
could you explain for us at a high level what you want to do; perhaps there is a better approach to use. I, for one, don't understand your wishes and therefore gave up on adding to the thread. You have a routine that processes one file and returns one value. Then you asked about multiple files - but with no idea of what you are trying to achieve there is nobody here who can assist.