My concern is I want to move the store and the model id from the flat file to the below code .In infile and the file statement the data should move like a loop which satisfy my requirement.Could you help me in this
I suggest that you read a bit more about how the DATA step operates. The DATA step operates with implicit loop control. Generally, unless you alter the default behavior, the DATA step will loop one time for every observation that you read with a SET statement or an INFILE statement ("raw" data line).
Guessing your SAS operating system is z/OS (IBM mainframe) and you want to stow a unique PDS/PDSE library member, based on data content. Review using the FILEVAR= keyword on the FILE statement.
For future posts, it's best to share as much info about your SAS environment, with version, operating system, local or remote SAS installed/accessed, new code / program or existing, and as you have done, share all code, though preferably as a pasted content from your SAS-generated log output.
Suggested Google advanced search arguments, this topic/post:
data step filevar site:sas.com
data step file statement filevar write pds member site:sas.com
Message was edited by: sbb