160 pts.
 How to create a text file in i5/OS system
How to create a text file in i5/OS system

Software/Hardware used:
ASKED: June 18, 2008  7:15 PM
UPDATED: April 27, 2010  7:23 AM

Answer Wiki:
Jacky, Could you describe a little more what you are wanting to accomplish? Do you want to create a file from another system? Or do you want to be able to create a file by keying it in? Stuart ========================================================== If you want to create text files like you do with Notepad, then use Notepad. Your system is perfectly capable of having Notepad create your text files. Or if you must use a green-screen command, then use EDTF. Tom
Last Wiki Answer Submitted:  April 27, 2010  7:23 am  by  Canuck62   130 pts.
All Answer Wiki Contributors:  Canuck62   130 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

i am new to i5/OS. I just want to create file in this OS as we create a text file in windows using notepad

 160 pts.

 

Hi,
The command for creating a file is CRTPF (CReaTe Physical File) :-

CRTPF FILE(Your_library/Your_File) RCDLEN(80)

The RCDLEN parameter sets the record length for your file.

Regards,

Martin Gilbert.

 23,625 pts.

 

anther way –
If you intend to use the QTXTSRC -

  STRSEU SRCFILE(libname/QTXTSRC) SRCMBR(THISONE)

– from command line will open a txt file that will give an option to save on exit. If needed you could create a command with 1 parm being filename that you will use.

 1,000 pts.